mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 00:03:49 +00:00
11 lines
237 B
Rust
11 lines
237 B
Rust
//@ run-rustfix
|
|
|
|
use std::sync::Arc;
|
|
|
|
fn main() {
|
|
let _ = 7u32 as Option<_>;
|
|
//~^ ERROR non-primitive cast: `u32` as `Option<_>`
|
|
let _ = "String" as Arc<str>;
|
|
//~^ ERROR non-primitive cast: `&'static str` as `Arc<str>`
|
|
}
|