]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-28344.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-28344.rs
CommitLineData
e9174d1e 1use std::ops::BitXor;
c34b1796 2
c34b1796 3fn 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}