about summary refs log tree commit diff
path: root/tests/ui/coercion/non-primitive-cast-135412.rs
blob: 67a3ef340d2f19c669300a68abc75d70476c91bb (plain)
1
2
3
4
5
6
7
8
9
10
//@ 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>`
}