fork/rust

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

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

1.44.0
528 B15 linesraw
1error[E0277]: the trait bound `(): MyTrait` is not satisfied
2  --> $DIR/reservation-impl-no-use.rs:10:26
3   |
4LL | trait MyTrait { fn foo(&self); }
5   |                 -------------- required by `MyTrait::foo`
6...
7LL |     <() as MyTrait>::foo(&());
8   |                          ^^^ the trait `MyTrait` is not implemented for `()`
9   |
10   = help: the following implementations were found:
11             <() as MyTrait>
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.