//@ check-pass #![warn(unused_imports)] use std::option::Option::Some; //FIXME(unused_imports): ~^ WARNING the item `Some` is imported redundantly use std::option::Option::None; //FIXME(unused_imports): ~ WARNING the item `None` is imported redundantly use std::result::Result::Ok; //FIXME(unused_imports): ~^ WARNING the item `Ok` is imported redundantly use std::result::Result::Err; //FIXME(unused_imports): ~^ WARNING the item `Err` is imported redundantly use std::convert::{TryFrom, TryInto}; fn main() { let _a: Option = Some(1); let _b: Option = None; let _c: Result = Ok(1); let _d: Result = Err("error"); let _e: Result = 8u8.try_into(); let _f: Result = i32::try_from(8u8); }