]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-bot.rs
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / 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 }