aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/unsafe10.rs
blob: 5861c15cd71d135d3c2b5655c07d6c248df4acc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![feature(intrinsics)]

#[lang = "sized"]
pub trait Sized {}

extern "rust-intrinsic" {
    pub fn rotate_left<T>(l: T, r: T) -> T;
}

fn main() -> i32 {
    let a = 15;
    let b = 15;

    let _ = rotate_left(a, b);

    0
}