summary refs log tree commit diff
path: root/src/test/compile-fail/static-region-bound.rs
blob: 500a5b0c8bcbcdf00059d65896e6fccada7f19a1 (plain)
1
2
3
4
5
6
7
8
9
fn f<T:'static>(_: T) {}

fn main() {
    let x = @3;
    f(x);
    let x = &3;
    f(x);   //~ ERROR instantiating a type parameter with an incompatible type
}