summary refs log tree commit diff
path: root/src/test/ui/resolve/issue-5035-2.stderr
blob: 92309274e844279f3b18846115cf1816f20a5c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0277]: the trait bound `I + 'static: std::marker::Sized` is not satisfied
  --> $DIR/issue-5035-2.rs:14:8
   |
LL | fn foo(_x: K) {} //~ ERROR: `I + 'static: std::marker::Sized` is not satisfied
   |        ^^ `I + 'static` does not have a constant size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `I + 'static`
   = note: all local variables must have a statically known size

error: aborting due to previous error

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