mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
7d33094d3a
``` error[E0637]: `&` without an explicit lifetime name cannot be used here --> $DIR/E0637.rs:13:13 | LL | T: Into<&u32>, | ^ explicit lifetime name needed here | help: consider introducing a higher-ranked lifetime here | LL | T: for<'a> Into<&'a u32>, | +++++++ ++ ```
16 lines
232 B
Rust
16 lines
232 B
Rust
// run-rustfix
|
|
// edition:2018
|
|
|
|
trait WithType<T> {}
|
|
trait WithRegion<'a> { }
|
|
|
|
trait Foo { }
|
|
|
|
impl<T> Foo for Vec<T>
|
|
where
|
|
T: WithType<&u32>
|
|
//~^ ERROR `&` without an explicit lifetime name cannot be used here
|
|
{ }
|
|
|
|
fn main() {}
|