fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
642 B20 linesraw
1error: cannot constrain an associated constant to a value
2  --> $DIR/recover-assoc-const-constraint.rs:3:11
3   |
4LL |     bar::<Item = 42>();
5   |           ----^^^--
6   |           |      |
7   |           |      ...cannot be constrained to this value
8   |           this associated constant...
9
10error: cannot constrain an associated constant to a value
11  --> $DIR/recover-assoc-const-constraint.rs:4:11
12   |
13LL |     bar::<Item = { 42 }>();
14   |           ----^^^------
15   |           |      |
16   |           |      ...cannot be constrained to this value
17   |           this associated constant...
18
19error: aborting due to 2 previous errors
20