diff options
Diffstat (limited to 'src/test/ui/suggestions/impl-trait-return-trailing-semicolon.rs')
-rw-r--r-- | src/test/ui/suggestions/impl-trait-return-trailing-semicolon.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/suggestions/impl-trait-return-trailing-semicolon.rs b/src/test/ui/suggestions/impl-trait-return-trailing-semicolon.rs deleted file mode 100644 index cd3741356..000000000 --- a/src/test/ui/suggestions/impl-trait-return-trailing-semicolon.rs +++ /dev/null @@ -1,21 +0,0 @@ -trait Bar {} - -impl Bar for i32 {} - -struct Qux; - -impl Bar for Qux {} - -fn foo() -> impl Bar { - //~^ ERROR the trait bound `(): Bar` is not satisfied - 5; - //~^ HELP remove this semicolon -} - -fn bar() -> impl Bar { - //~^ ERROR the trait bound `(): Bar` is not satisfied - //~| HELP the following other types implement trait `Bar`: - ""; -} - -fn main() {} |