about summary refs log tree commit diff
path: root/tests/ui/traits/unsize-goal-escaping-bounds.current.stderr
blob: e63a0bf50b7aa9512cead31f06d3ed387f1d6e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0277]: the trait bound `for<'a> (): Unsize<(dyn Trait + 'a)>` is not satisfied
  --> $DIR/unsize-goal-escaping-bounds.rs:20:5
   |
LL |     foo();
   |     ^^^^^ the trait `for<'a> Unsize<(dyn Trait + 'a)>` is not implemented for `()`
   |
   = note: all implementations of `Unsize` are provided automatically by the compiler, see <https://doc.rust-lang.org/stable/std/marker/trait.Unsize.html> for more information
note: required by a bound in `foo`
  --> $DIR/unsize-goal-escaping-bounds.rs:15:17
   |
LL | fn foo()
   |    --- required by a bound in this function
LL | where
LL |     for<'a> (): Unsize<dyn Trait + 'a>,
   |                 ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `foo`

error: aborting due to 1 previous error

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