about summary refs log tree commit diff
path: root/src/test/ui/lifetimes/lifetime-errors/issue_74400.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lifetimes/lifetime-errors/issue_74400.stderr')
-rw-r--r--src/test/ui/lifetimes/lifetime-errors/issue_74400.stderr38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/test/ui/lifetimes/lifetime-errors/issue_74400.stderr b/src/test/ui/lifetimes/lifetime-errors/issue_74400.stderr
deleted file mode 100644
index 7049f28e2f6..00000000000
--- a/src/test/ui/lifetimes/lifetime-errors/issue_74400.stderr
+++ /dev/null
@@ -1,38 +0,0 @@
-error[E0310]: the parameter type `T` may not live long enough
-  --> $DIR/issue_74400.rs:12:5
-   |
-LL |     f(data, identity)
-   |     ^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
-   |
-help: consider adding an explicit lifetime bound...
-   |
-LL | fn g<T: 'static>(data: &[T]) {
-   |       +++++++++
-
-error[E0308]: mismatched types
-  --> $DIR/issue_74400.rs:12:5
-   |
-LL |     f(data, identity)
-   |     ^^^^^^^^^^^^^^^^^ one type is more general than the other
-   |
-   = note: expected trait `for<'a> Fn<(&'a T,)>`
-              found trait `Fn<(&T,)>`
-note: the lifetime requirement is introduced here
-  --> $DIR/issue_74400.rs:8:34
-   |
-LL | fn f<T, S>(data: &[T], key: impl Fn(&T) -> S) {
-   |                                  ^^^^^^^^^^^
-
-error: implementation of `FnOnce` is not general enough
-  --> $DIR/issue_74400.rs:12:5
-   |
-LL |     f(data, identity)
-   |     ^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough
-   |
-   = note: `fn(&'2 T) -> &'2 T {identity::<&'2 T>}` must implement `FnOnce<(&'1 T,)>`, for any lifetime `'1`...
-   = note: ...but it actually implements `FnOnce<(&'2 T,)>`, for some specific lifetime `'2`
-
-error: aborting due to 3 previous errors
-
-Some errors have detailed explanations: E0308, E0310.
-For more information about an error, try `rustc --explain E0308`.