1
Fork 0

implement feature tuple_struct_self_ctor

This commit is contained in:
F001 2018-08-28 12:51:43 +08:00
parent f2302daef3
commit a489169912
9 changed files with 255 additions and 42 deletions

View file

@ -11,15 +11,6 @@
struct S(u8, u16);
type A = S;
impl S {
fn f() {
let s = Self(0, 1); //~ ERROR expected function
match s {
Self(..) => {} //~ ERROR expected tuple struct/variant
}
}
}
fn main() {
let s = A(0, 1); //~ ERROR expected function
match s {