]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/impl-parsing.rs
Point (again) to more expressions with their type, even if not fully resolved
[rust.git] / src / test / ui / parser / impl-parsing.rs
1 impl ! {} // OK
2 impl ! where u8: Copy {} // OK
3
4 impl Trait Type {} //~ ERROR missing `for` in a trait impl
5 impl Trait .. {} //~ ERROR missing `for` in a trait impl
6 impl ?Sized for Type {} //~ ERROR expected a trait, found type
7 impl ?Sized for .. {} //~ ERROR expected a trait, found type
8
9 default unsafe FAIL //~ ERROR expected item, found keyword `unsafe`
10 //~^ ERROR `default` is not followed by an item