2025-07-07 16:30:14 +08:00
|
|
|
// In this test, the span of the trait bound label should point to `1`, not `""`.
|
2025-07-07 16:43:30 +08:00
|
|
|
// See issue #143336
|
2025-07-07 16:30:14 +08:00
|
|
|
|
|
|
|
|
trait A<T> {
|
|
|
|
|
fn f(self, x: T);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
A::f(1, ""); //~ ERROR the trait bound `{integer}: A<_>` is not satisfied [E0277]
|
2025-07-07 16:43:30 +08:00
|
|
|
}
|