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