summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-89333.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/issue-89333.stderr')
-rw-r--r--src/test/ui/suggestions/issue-89333.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/issue-89333.stderr b/src/test/ui/suggestions/issue-89333.stderr
new file mode 100644
index 000000000..f73f1147d
--- /dev/null
+++ b/src/test/ui/suggestions/issue-89333.stderr
@@ -0,0 +1,15 @@
+error[E0277]: the trait bound `for<'a> &'a _: Trait` is not satisfied
+ --> $DIR/issue-89333.rs:6:5
+ |
+LL | test(&|| 0);
+ | ^^^^ the trait `for<'a> Trait` is not implemented for `&'a _`
+ |
+note: required by a bound in `test`
+ --> $DIR/issue-89333.rs:11:55
+ |
+LL | fn test<T>(arg: &impl Fn() -> T) where for<'a> &'a T: Trait {}
+ | ^^^^^ required by this bound in `test`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.