]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/impl-parsing.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / impl-parsing.rs
1 // compile-flags: -Z continue-parse-after-error
2
3 impl ! {} // OK
4 impl ! where u8: Copy {} // OK
5
6 impl Trait Type {} //~ ERROR missing `for` in a trait impl
7 impl Trait .. {} //~ ERROR missing `for` in a trait impl
8 impl ?Sized for Type {} //~ ERROR expected a trait, found type
9 impl ?Sized for .. {} //~ ERROR expected a trait, found type
10
11 default unsafe FAIL //~ ERROR expected `impl`, found `FAIL`