fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/resume-arg-late-bound.rs:15:5 3 | 4LL | test(gen); 5 | ^^^^^^^^^ one type is more general than the other 6 | 7 = note: expected trait `for<'a> Generator<&'a mut bool>` 8 found trait `Generator<&mut bool>` 9note: the lifetime requirement is introduced here 10 --> $DIR/resume-arg-late-bound.rs:8:17 11 | 12LL | fn test(a: impl for<'a> Generator<&'a mut bool>) {} 13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0308`.