summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coercion/issue-73886.rs
blob: 9c0c87a5cf296b4653cfea83e59213b0b375214e (plain)
1
2
3
4
5
6
fn main() {
    let _ = &&[0] as &[_];
    //~^ ERROR non-primitive cast: `&&[i32; 1]` as `&[_]`
    let _ = 7u32 as Option<_>;
    //~^ ERROR non-primitive cast: `u32` as `Option<_>`
}