fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3#![allow(warnings)] 4 5fn no_restriction<'a, T: 'a>(x: &'a ()) -> &() { 6 with_restriction::<T>(x) //~ ERROR E0311 7} 8 9fn with_restriction<'a, T: 'a>(x: &'a ()) -> &'a () { 10 x 11} 12 13fn main() {}