diff options
Diffstat (limited to 'src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs')
| -rw-r--r-- | src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs | 12 | 
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs b/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs deleted file mode 100644 index d3940b13b11..00000000000 --- a/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs +++ /dev/null @@ -1,12 +0,0 @@ -/* - * We don't infer `T: 'static` outlives relationships. - */ - -struct Foo<U> { - bar: Bar<U> //~ ERROR the parameter type `U` may not live long enough [E0310] -} -struct Bar<T: 'static> { - x: T, -} - -fn main() {}  | 
