]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/in-trait/generics-mismatch.rs
Move /src/test to /tests
[rust.git] / src / test / ui / impl-trait / in-trait / generics-mismatch.rs
diff --git a/src/test/ui/impl-trait/in-trait/generics-mismatch.rs b/src/test/ui/impl-trait/in-trait/generics-mismatch.rs
deleted file mode 100644 (file)
index cc0fc72..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#![feature(return_position_impl_trait_in_trait)]
-#![allow(incomplete_features)]
-
-struct U;
-
-trait Foo {
-    fn bar(&self) -> impl Sized;
-}
-
-impl Foo for U {
-    fn bar<T>(&self) {}
-    //~^ ERROR method `bar` has 1 type parameter but its trait declaration has 0 type parameters
-}
-
-fn main() {
-    U.bar();
-}