]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-bot.rs
internally change regions to be covariant
[rust.git] / tests / ui / regions / regions-bot.rs
1 // run-pass
2 #![allow(dead_code)]
3 // A very limited test of the "bottom" region
4
5
6 fn produce_static<T>() -> &'static T { panic!(); }
7
8 fn foo<T>(_x: &T) -> &usize { produce_static() }
9
10 pub fn main() {
11 }