summaryrefslogtreecommitdiffstats
path: root/src/test/ui/static/static-lifetime-bound.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/static/static-lifetime-bound.stderr')
-rw-r--r--src/test/ui/static/static-lifetime-bound.stderr22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/test/ui/static/static-lifetime-bound.stderr b/src/test/ui/static/static-lifetime-bound.stderr
deleted file mode 100644
index ef07a8931..000000000
--- a/src/test/ui/static/static-lifetime-bound.stderr
+++ /dev/null
@@ -1,22 +0,0 @@
-warning: unnecessary lifetime parameter `'a`
- --> $DIR/static-lifetime-bound.rs:1:6
- |
-LL | fn f<'a: 'static>(_: &'a i32) {}
- | ^^
- |
- = help: you can use the `'static` lifetime directly, in place of `'a`
-
-error[E0597]: `x` does not live long enough
- --> $DIR/static-lifetime-bound.rs:5:7
- |
-LL | f(&x);
- | --^^-
- | | |
- | | borrowed value does not live long enough
- | argument requires that `x` is borrowed for `'static`
-LL | }
- | - `x` dropped here while still borrowed
-
-error: aborting due to previous error; 1 warning emitted
-
-For more information about this error, try `rustc --explain E0597`.