We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0247c8 commit 5dc27d2Copy full SHA for 5dc27d2
1 file changed
tests/ui/associated-consts/assoc-const-eq-ambiguity.stderr
@@ -27,6 +27,12 @@ LL | const C: &'static str;
27
...
28
LL | fn take1(_: impl Trait1<C = "?">) {}
29
| ^^^^^^^ 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 = "?"
36
37
error: aborting due to 2 previous errors
38
0 commit comments