implement feature tuple_struct_self_ctor
This commit is contained in:
parent
f2302daef3
commit
a489169912
9 changed files with 255 additions and 42 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue