]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0311.rs
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / error-codes / E0311.rs
1 fn no_restriction<T>(x: &()) -> &() {
2     with_restriction::<T>(x) //~ ERROR E0311
3 }
4
5 fn with_restriction<'a, T: 'a>(x: &'a ()) -> &'a () {
6     x
7 }
8
9 fn main() {}