summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-89333.stderr
blob: 761de7f25218471fcfe10fc8a2e2b1e4c4f027dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 _`
   |
help: this trait has no implementations, consider adding one
  --> $DIR/issue-89333.rs:9:1
   |
LL | trait Trait {}
   | ^^^^^^^^^^^
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 1 previous error

For more information about this error, try `rustc --explain E0277`.