diff options
Diffstat (limited to 'src/test/ui/error-codes/E0746.fixed')
-rw-r--r-- | src/test/ui/error-codes/E0746.fixed | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/error-codes/E0746.fixed b/src/test/ui/error-codes/E0746.fixed deleted file mode 100644 index ca8319aa0..000000000 --- a/src/test/ui/error-codes/E0746.fixed +++ /dev/null @@ -1,18 +0,0 @@ -// run-rustfix -#![allow(dead_code)] -struct Struct; -trait Trait {} -impl Trait for Struct {} -impl Trait for u32 {} - -fn foo() -> impl Trait { Struct } -//~^ ERROR E0746 - -fn bar() -> impl Trait { //~ ERROR E0746 - if true { - return 0; - } - 42 -} - -fn main() {} |