mirror of https://github.com/rust-lang/rust
18 lines
643 B
Plaintext
18 lines
643 B
Plaintext
error: cannot capture late-bound lifetime in constant
|
|
--> $DIR/escaping_bound_vars.rs:11:35
|
|
|
|
|
LL | (): Test<{ 1 + (<() as Elide(&())>::call) }>,
|
|
| -^
|
|
| |
|
|
| lifetime defined here
|
|
|
|
error[E0229]: associated type bindings are not allowed here
|
|
--> $DIR/escaping_bound_vars.rs:11:28
|
|
|
|
|
LL | (): Test<{ 1 + (<() as Elide(&())>::call) }>,
|
|
| ^^^^^^^^^^ associated type not allowed here
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0229`.
|