diff options
Diffstat (limited to 'src/test/ui/structs/struct-path-self-type-mismatch.rs')
-rw-r--r-- | src/test/ui/structs/struct-path-self-type-mismatch.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/structs/struct-path-self-type-mismatch.rs b/src/test/ui/structs/struct-path-self-type-mismatch.rs deleted file mode 100644 index c0c557eca..000000000 --- a/src/test/ui/structs/struct-path-self-type-mismatch.rs +++ /dev/null @@ -1,21 +0,0 @@ -struct Foo<A> { inner: A } - -trait Bar { fn bar(); } - -impl Bar for Foo<i32> { - fn bar() { - Self { inner: 1.5f32 }; //~ ERROR mismatched types - } -} - -impl<T> Foo<T> { - fn new<U>(u: U) -> Foo<U> { - Self { - //~^ ERROR mismatched types - inner: u - //~^ ERROR mismatched types - } - } -} - -fn main() {} |