]>
Commit | Line | Data |
---|---|---|
e9174d1e | 1 | use std::ops::BitXor; |
c34b1796 | 2 | |
c34b1796 | 3 | fn main() { |
e9174d1e SL |
4 | let x: u8 = BitXor::bitor(0 as u8, 0 as u8); |
5 | //~^ ERROR must be specified | |
7cac9316 | 6 | //~| no function or associated item named |
a2a8927a XL |
7 | //~| WARN trait objects without an explicit `dyn` are deprecated |
8 | //~| WARN this is accepted in the current edition | |
e9174d1e SL |
9 | |
10 | let g = BitXor::bitor; | |
11 | //~^ ERROR must be specified | |
7cac9316 | 12 | //~| no function or associated item named |
a2a8927a XL |
13 | //~| WARN trait objects without an explicit `dyn` are deprecated |
14 | //~| WARN this is accepted in the current edition | |
7cac9316 | 15 | } |