fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.5 KiB34 linesraw
1error[E0191]: the value of the associated type `Output` (from the trait `std::ops::BitXor`) must be specified
2  --> $DIR/issue-28344.rs:4:17
3   |
4LL |     let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
5   |                 ^^^^^^^^^^^^^ associated type `Output` must be specified
6
7error[E0599]: no function or associated item named `bitor` found for type `dyn std::ops::BitXor<_>` in the current scope
8  --> $DIR/issue-28344.rs:4:25
9   |
10LL |     let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
11   |                         ^^^^^
12   |                         |
13   |                         function or associated item not found in `dyn std::ops::BitXor<_>`
14   |                         help: there is a method with a similar name: `bitxor`
15
16error[E0191]: the value of the associated type `Output` (from the trait `std::ops::BitXor`) must be specified
17  --> $DIR/issue-28344.rs:8:13
18   |
19LL |     let g = BitXor::bitor;
20   |             ^^^^^^^^^^^^^ associated type `Output` must be specified
21
22error[E0599]: no function or associated item named `bitor` found for type `dyn std::ops::BitXor<_>` in the current scope
23  --> $DIR/issue-28344.rs:8:21
24   |
25LL |     let g = BitXor::bitor;
26   |                     ^^^^^
27   |                     |
28   |                     function or associated item not found in `dyn std::ops::BitXor<_>`
29   |                     help: there is a method with a similar name: `bitxor`
30
31error: aborting due to 4 previous errors
32
33Some errors have detailed explanations: E0191, E0599.
34For more information about an error, try `rustc --explain E0191`.