about summary refs log tree commit diff
path: root/src/test/ui/span/issue-7575.rs
AgeCommit message (Collapse)AuthorLines
2022-09-20Move some tests to more reasonable directoriesCaio-75/+0
2020-01-08Unify output of "variant not found" errorsEsteban Küber-3/+3
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-2/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2017-12-14Remove NOTE/HELP annotations from UI testsVadim Petrochenkov-11/+6
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-5/+5
2017-07-08Remove more anonymous trait method parametersVadim Petrochenkov-4/+4
2017-01-12E0034: provide disambiguated syntax for candidatesEsteban Küber-0/+92
For a given file ```rust trait A { fn foo(&self) {} } trait B : A { fn foo(&self) {} } fn bar<T: B>(a: &T) { a.foo() } ``` provide the following output ``` error[E0034]: multiple applicable items in scope --> file.rs:6:5 | 6 | a.foo(1) | ^^^ multiple `foo` found | note: candidate #1 is defined in the trait `A` --> file.rs:2:11 | 2 | trait A { fn foo(&self, a: usize) {} } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to use it here write `A::foo(&a, 1)` instead --> file.rs:6:5 | 6 | a.foo(1) | ^^^ note: candidate #2 is defined in the trait `B` --> file.rs:3:15 | 3 | trait B : A { fn foo(&self, a: usize) {} } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to use it here write `B::foo(&a, 1)` instead --> file.rs:6:5 | 6 | a.foo(1) | ^^^ ```