Closed
Description
trait T {}
fn function<U: T>(u: U) {}
fn main() {
function(0u32);
}
This yields:
error[E0277]: the trait bound `u32: T` is not satisfied
--> <anon>:6:5
|
6 | function(0u32);
| ^^^^^^^^ the trait `T` is not implemented for `u32`
|
= note: required by `function`
error: aborting due to previous error
When there are multiple arguments, this is much less helpful than if the span pointed at the argument in question.