diff options
Diffstat (limited to 'tests/ui/parser/issues/issue-27255.rs')
-rw-r--r-- | tests/ui/parser/issues/issue-27255.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-27255.rs b/tests/ui/parser/issues/issue-27255.rs new file mode 100644 index 000000000..d619688e1 --- /dev/null +++ b/tests/ui/parser/issues/issue-27255.rs @@ -0,0 +1,10 @@ +trait A {} + +impl A .. {} +//~^ ERROR missing `for` in a trait impl +//~| ERROR `impl Trait for .. {}` is an obsolete syntax + +impl A usize {} +//~^ ERROR missing `for` in a trait impl + +fn main() {} |