rust/tests/ui/generator/pattern-borrow.stderr

12 lines
370 B
Plaintext
Raw Normal View History

error[E0626]: borrow may still be in use when generator yields
2018-12-25 08:56:47 -07:00
--> $DIR/pattern-borrow.rs:9:24
|
2019-03-09 15:03:44 +03:00
LL | if let Test::A(ref _a) = test {
| ^^^^^^
2018-02-23 03:42:32 +03:00
LL | yield ();
| -------- possible yield occurs here
error: aborting due to previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0626`.