]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-outlives-scalar.rs
add UI test + docs for `E0789`
[rust.git] / tests / ui / regions / regions-outlives-scalar.rs
1 // Test that scalar values outlive all regions.
2 // Rule OutlivesScalar from RFC 1214.
3
4 // check-pass
5 #![allow(dead_code)]
6
7 struct Foo<'a> {
8     x: &'a i32,
9     y: &'static i32
10 }
11
12
13 fn main() { }