Skip to content

Commit 5dc27d2

Browse files
committed
Bless tests
1 parent d0247c8 commit 5dc27d2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/ui/associated-consts/assoc-const-eq-ambiguity.stderr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ LL | const C: &'static str;
2727
...
2828
LL | fn take1(_: impl Trait1<C = "?">) {}
2929
| ^^^^^^^ ambiguous associated constant `C`
30+
|
31+
= help: consider introducing a new type parameter `T` and adding `where` constraints:
32+
where
33+
T: Trait1,
34+
T: Parent2::C = "?",
35+
T: Parent1::C = "?"
3036

3137
error: aborting due to 2 previous errors
3238

0 commit comments

Comments
 (0)