fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find value `unknown` in this scope 2 --> $DIR/dont-autoderef-ty-with-escaping-var.rs:17:35 3 | 4LL | <i32 as RefFoo<i32>>::ref_foo(unknown); 5 | ^^^^^^^ not found in this scope 6 7error[E0277]: the trait bound `for<'a> &'a mut Vec<&'a u32>: Foo<'static, i32>` is not satisfied 8 --> $DIR/dont-autoderef-ty-with-escaping-var.rs:17:6 9 | 10LL | <i32 as RefFoo<i32>>::ref_foo(unknown); 11 | ^^^ the trait `for<'a> Foo<'static, i32>` is not implemented for `&'a mut Vec<&'a u32>` 12 | 13help: this trait has no implementations, consider adding one 14 --> $DIR/dont-autoderef-ty-with-escaping-var.rs:3:1 15 | 16LL | trait Foo<'x, T> {} 17 | ^^^^^^^^^^^^^^^^ 18note: required for `i32` to implement `RefFoo<i32>` 19 --> $DIR/dont-autoderef-ty-with-escaping-var.rs:9:9 20 | 21LL | impl<T> RefFoo<T> for T 22 | ^^^^^^^^^ ^ 23LL | where 24LL | for<'a> &'a mut Vec<&'a u32>: Foo<'static, T>, 25 | --------------- unsatisfied trait bound introduced here 26 27error: aborting due to 2 previous errors 28 29Some errors have detailed explanations: E0277, E0425. 30For more information about an error, try `rustc --explain E0277`.