about summary refs log tree commit diff
path: root/tests/ui/lifetimes/static-bound-fulfillment-with-pointer-7268.rs
blob: 8ec58e6cd800bd3a35991e58006f26f51deb064b (plain)
1
2
3
4
5
6
7
8
9
10
// https://github.com/rust-lang/rust/issues/7268
//@ check-pass
#![allow(dead_code)]

fn foo<T: 'static>(_: T) {}

fn bar<T>(x: &'static T) {
    foo(x);
}
fn main() {}