diff options
Diffstat (limited to 'src/test/ui/nll/relate_tys/opaque-hrtb.rs')
-rw-r--r-- | src/test/ui/nll/relate_tys/opaque-hrtb.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/nll/relate_tys/opaque-hrtb.rs b/src/test/ui/nll/relate_tys/opaque-hrtb.rs deleted file mode 100644 index 261372523..000000000 --- a/src/test/ui/nll/relate_tys/opaque-hrtb.rs +++ /dev/null @@ -1,14 +0,0 @@ -trait MyTrait<T> {} - -struct Foo; -impl<T> MyTrait<T> for Foo {} - -fn bar<Input>() -> impl MyTrait<Input> { - Foo -} - -fn foo() -> impl for<'a> MyTrait<&'a str> { - bar() //~ ERROR implementation of `MyTrait` is not general enough -} - -fn main() {} |