]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28344.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / issues / issue-28344.rs
1 use std::ops::BitXor;
2
3 fn main() {
4     let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
5     //~^ ERROR must be specified
6     //~| no function or associated item named
7     //~| WARN trait objects without an explicit `dyn` are deprecated
8     //~| WARN this is accepted in the current edition
9
10     let g = BitXor::bitor;
11     //~^ ERROR must be specified
12     //~| no function or associated item named
13     //~| WARN trait objects without an explicit `dyn` are deprecated
14     //~| WARN this is accepted in the current edition
15 }