summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-ranked/trait-bounds/fn-ptr.classic.stderr
blob: 8ab88c580755b55c99b20e5f286e59c0b55e449a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0277]: expected a `Fn(&'w ())` closure, found `fn(&'w ())`
  --> $DIR/fn-ptr.rs:12:5
   |
LL |     ice();
   |     ^^^ expected an `Fn(&'w ())` closure, found `fn(&'w ())`
   |
   = help: the trait `for<'w> Fn<(&'w (),)>` is not implemented for `fn(&'w ())`
note: required by a bound in `ice`
  --> $DIR/fn-ptr.rs:7:25
   |
LL | fn ice()
   |    --- required by a bound in this function
LL | where
LL |     for<'w> fn(&'w ()): Fn(&'w ()),
   |                         ^^^^^^^^^^ required by this bound in `ice`

error: aborting due to previous error

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