diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs (renamed from src/test/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs b/tests/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs index 645bc7db0..d6ce112ec 100644 --- a/src/test/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs +++ b/tests/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs @@ -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 } |