about summary refs log tree commit diff
path: root/tests/ui/trait-bounds/false-span-in-trait-bound-label.rs
blob: 0e307309860233c7a6c94834790181595d323645 (plain)
1
2
3
4
5
6
7
8
9
10
// In this test, the span of the trait bound label should point to `1`, not `""`.
// See issue #143336

trait A<T> {
    fn f(self, x: T);
}

fn main() {
    A::f(1, ""); //~ ERROR the trait bound `{integer}: A<_>` is not satisfied [E0277]
}