aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-1930.rs
blob: 071b3dae21c31396053e6e70efd496139b7331cc (plain)
1
2
3
4
5
6
7
// { dg-options "-w" }
#[lang = "sized"]
pub trait Sized {}

fn test<T>(x: *mut T) {
    let x = x as *mut u8;
}