about summary refs log tree commit diff
path: root/tests/ui/traits/negative-bounds/negative-sized.stderr
blob: 143933803b81086e4a0f83dc9343da8b3de5db17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0277]: the trait bound `(): !Sized` is not satisfied
  --> $DIR/negative-sized.rs:6:11
   |
LL |     foo::<()>();
   |           ^^ the trait bound `(): !Sized` is not satisfied
   |
note: required by a bound in `foo`
  --> $DIR/negative-sized.rs:3:11
   |
LL | fn foo<T: !Sized>() {}
   |           ^^^^^^ required by this bound in `foo`

error: aborting due to 1 previous error

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