mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
518 B
Rust
15 lines
518 B
Rust
use std::ops::BitXor;
|
|
|
|
fn main() {
|
|
let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
|
|
//~^ ERROR must be specified
|
|
//~| no function or associated item named
|
|
//~| WARN trait objects without an explicit `dyn` are deprecated
|
|
//~| WARN this is accepted in the current edition
|
|
|
|
let g = BitXor::bitor;
|
|
//~^ ERROR must be specified
|
|
//~| no function or associated item named
|
|
//~| WARN trait objects without an explicit `dyn` are deprecated
|
|
//~| WARN this is accepted in the current edition
|
|
}
|