summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr')
-rw-r--r--src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr b/src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr
deleted file mode 100644
index 0ed8a703b..000000000
--- a/src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr
+++ /dev/null
@@ -1,16 +0,0 @@
-error[E0700]: hidden type for `impl PlusOne` captures lifetime that does not appear in bounds
- --> $DIR/imply_bounds_from_bounds_param.rs:24:5
- |
-LL | fn test<'a>(y: &'a mut i32) -> impl PlusOne {
- | -- hidden type `<&'a mut i32 as Callable>::Output` captures the lifetime `'a` as defined here
-LL | <&'a mut i32 as Callable>::call(y)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
-help: to declare that `impl PlusOne` captures `'a`, you can add an explicit `'a` lifetime bound
- |
-LL | fn test<'a>(y: &'a mut i32) -> impl PlusOne + 'a {
- | ++++
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0700`.