summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-89064.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/issue-89064.rs')
-rw-r--r--src/test/ui/suggestions/issue-89064.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/test/ui/suggestions/issue-89064.rs b/src/test/ui/suggestions/issue-89064.rs
deleted file mode 100644
index fa5fc899d..000000000
--- a/src/test/ui/suggestions/issue-89064.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-use std::convert::TryInto;
-
-trait A<T> {
- fn foo() {}
-}
-
-trait B<T, U> {
- fn bar() {}
-}
-
-struct S;
-
-impl<T> A<T> for S {}
-impl<T, U> B<T, U> for S {}
-
-fn main() {
- let _ = A::foo::<S>();
- //~^ ERROR
- //~| HELP remove these generics
- //~| HELP consider moving this generic argument
-
- let _ = B::bar::<S, S>();
- //~^ ERROR
- //~| HELP remove these generics
- //~| HELP consider moving these generic arguments
-
- let _ = A::<S>::foo::<S>();
- //~^ ERROR
- //~| HELP remove these generics
-
- let _ = 42.into::<Option<_>>();
- //~^ ERROR
- //~| HELP remove these generics
- //~| HELP consider moving this generic argument
-}