diff options
Diffstat (limited to 'src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.rs')
-rw-r--r-- | src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.rs b/src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.rs deleted file mode 100644 index 538e74ee1..000000000 --- a/src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.rs +++ /dev/null @@ -1,24 +0,0 @@ -struct A<T>(T); -struct B; - -trait I<T> {} -impl I<i32> for B {} -impl I<u32> for B {} - -trait V<U> { - fn method(self) -> U; -} - -impl<T, U> V<U> for A<T> -where - T: I<U>, -{ - fn method(self) -> U { unimplemented!() } -} - -fn main() { - let a = A(B); - a.method(); - //~^ ERROR type annotations needed - //~| ERROR type annotations needed -} |