]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-assoc-const-constraint.stderr
Merge commit '3e4179766bcecd712824da04356621b8df012ea4' into sync-from-clippy
[rust.git] / src / test / ui / parser / recover-assoc-const-constraint.stderr
1 error: cannot constrain an associated constant to a value
2   --> $DIR/recover-assoc-const-constraint.rs:3:11
3    |
4 LL |     bar::<Item = 42>();
5    |           ----^^^--
6    |           |      |
7    |           |      ...cannot be constrained to this value
8    |           this associated constant...
9
10 error: cannot constrain an associated constant to a value
11   --> $DIR/recover-assoc-const-constraint.rs:4:11
12    |
13 LL |     bar::<Item = { 42 }>();
14    |           ----^^^------
15    |           |      |
16    |           |      ...cannot be constrained to this value
17    |           this associated constant...
18
19 error: aborting due to 2 previous errors
20