3 } //~ ERROR expected one of `!` or `::`, found `}`
8 X() {} //~ ERROR expected one of `!` or `::`, found `(`
16 X() {} //~ ERROR expected one of `!` or `::`, found `(`
19 fn xxx() { ### } //~ ERROR expected
22 L = M; //~ ERROR expected one of `!` or `::`, found `=`
25 Z = { 2 + 3 }; //~ ERROR expected one of `!` or `::`, found `=`
28 ::Y (); //~ ERROR expected one of
32 pub hello_method(&self) { //~ ERROR missing
38 S.hello_method(); //~ no method named `hello_method` found