Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
error-codes
/
E0311.fixed
blob: 4410a4d707af462bfb20c1400e5a073350a8947d [
file
] [
log
] [
blame
]
// run-rustfix
#![allow(warnings)]
fn no_restriction
<
'a, T: '
a
>(
x
:
&
'a ()) -> &() {
with_restriction::<T>(x) //~ ERROR E0311
}
fn with_restriction<'
a
,
T
:
'a>(x: &'
a
())
->
&
'a () {
x
}
fn main() {}