@@ -10,6 +10,7 @@ LL | "this should not suggest impl Trait"
1010 |
1111 = note: expected type parameter `T`
1212 found reference `&'static str`
13+ = note: the caller chooses a type for `T` which can be different from `&'static str`
1314
1415error[E0308]: mismatched types
1516 --> $DIR/return-impl-trait-bad.rs:9:5
@@ -23,6 +24,7 @@ LL | "this will not suggest it, because that would probably be wrong"
2324 |
2425 = note: expected type parameter `T`
2526 found reference `&'static str`
27+ = note: the caller chooses a type for `T` which can be different from `&'static str`
2628
2729error[E0308]: mismatched types
2830 --> $DIR/return-impl-trait-bad.rs:17:5
@@ -37,6 +39,7 @@ LL | "don't suggest this, because Option<T> places additional constraints"
3739 |
3840 = note: expected type parameter `T`
3941 found reference `&'static str`
42+ = note: the caller chooses a type for `T` which can be different from `&'static str`
4043
4144error[E0308]: mismatched types
4245 --> $DIR/return-impl-trait-bad.rs:28:5
@@ -53,6 +56,7 @@ LL | "don't suggest this, because the generic param is used in the bound."
5356 |
5457 = note: expected type parameter `T`
5558 found reference `&'static str`
59+ = note: the caller chooses a type for `T` which can be different from `&'static str`
5660
5761error: aborting due to 4 previous errors
5862
0 commit comments