diff options
Diffstat (limited to 'src/test/ui/static/static-region-bound.rs')
-rw-r--r-- | src/test/ui/static/static-region-bound.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/static/static-region-bound.rs b/src/test/ui/static/static-region-bound.rs deleted file mode 100644 index d70706e57..000000000 --- a/src/test/ui/static/static-region-bound.rs +++ /dev/null @@ -1,12 +0,0 @@ -fn id<T>(x: T) -> T { x } - -fn f<T:'static>(_: T) {} - -fn main() { - - let x: Box<_> = Box::new(3); - f(x); - - let x = &id(3); //~ ERROR temporary value dropped while borrowed - f(x); -} |