]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/impl-parsing.rs
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[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