about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-20225.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-46/+0
2023-01-08Mention signature rather than fn pointers when comparing impl/trait methodsMichael Goulet-6/+6
2021-04-08Suggest changing impl parameter types to match traitEsteban Küber-3/+12
This is particularly useful for cases where arbitrary self types are used, like in custom `Future`s.
2021-04-08Use more accurate spans for trait/impl method arg divergenceEsteban Küber-6/+6
2020-05-02On type mismatch involving associated type, suggest constraintEsteban Küber-6/+0
When an associated type is found when a specific type was expected, if possible provide a structured suggestion constraining the associated type in a bound. ``` error[E0271]: type mismatch resolving `<T as Foo>::Y == i32` --> $DIR/associated-types-multiple-types-one-trait.rs:13:5 | LL | want_y(t); | ^^^^^^ expected `i32`, found associated type ... LL | fn want_y<T:Foo<Y=i32>>(t: &T) { } | ----- required by this bound in `want_y` | = note: expected type `i32` found associated type `<T as Foo>::Y` help: consider constraining the associated type `<T as Foo>::Y` to `i32` | LL | fn have_x_want_y<T:Foo<X=u32, Y = i32>>(t: &T) | ^^^^^^^^^ ``` ``` error[E0308]: mismatched types --> $DIR/trait-with-missing-associated-type-restriction.rs:12:9 | LL | qux(x.func()) | ^^^^^^^^ expected `usize`, found associated type | = note: expected type `usize` found associated type `<impl Trait as Trait>::A` help: consider constraining the associated type `<impl Trait as Trait>::A` to `usize` | LL | fn foo(x: impl Trait<A = usize>) { | ^^^^^^^^^^ ```
2019-11-18Surround types with backticks in type errorsEsteban Küber-3/+3
2019-11-18Remove E0308 note when primary label has all infoEsteban Küber-5/+5
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-6/+6
2019-11-02Update testsDmitry Kadashev-3/+10
Update the tests to reflect changes to how type mismatch errors are reported (two previous commits).
2019-09-18Add explanation to type mismatch involving type params and assoc typesEsteban Küber-0/+6
2018-12-25Remove licensesMark Rousskov-3/+3
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+30