mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 11:58:17 +00:00
11 lines
249 B
Rust
11 lines
249 B
Rust
//@ 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>`
|
|
}
|