mirror of https://github.com/rust-lang/rust
15 lines
399 B
Plaintext
15 lines
399 B
Plaintext
error: bounds cannot be used in this context
|
|
--> $DIR/bounds-on-closure-type-binders.rs:11:20
|
|
|
|
|
LL | let _ = for<T: Trait> || -> () {};
|
|
| ^^^^^
|
|
|
|
error: late-bound type parameter not allowed on closures
|
|
--> $DIR/bounds-on-closure-type-binders.rs:11:17
|
|
|
|
|
LL | let _ = for<T: Trait> || -> () {};
|
|
| ^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|