Fix invalid syntax in impl Trait parameter type suggestions for E0311
This commit is contained in:
parent
ef4046e4f3
commit
621d412241
14 changed files with 365 additions and 39 deletions
|
@ -1,3 +1,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
fn no_restriction<T>(x: &()) -> &() {
|
||||
with_restriction::<T>(x) //~ ERROR the parameter type `T` may not live long enough
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue