blob: 5cadc9368d52e905ad486b80733cc4e3b12e5b31 [file] [log] [blame]
//@ run-rustfix
use std::sync::Arc;
fn main() {
let _ = Option::<_>::from(7u32);
//~^ ERROR non-primitive cast: `u32` as `Option<_>`
let _ = Arc::<str>::from("String");
//~^ ERROR non-primitive cast: `&'static str` as `Arc<str>`
}