summary refs log tree commit diff
path: root/src/test/ui/generator/pattern-borrow.stderr
blob: 6b39b272d0e428adc0a28ab2ae2a624d96a96ce1 (plain)
1
2
3
4
5
6
7
8
9
10
error[E0626]: borrow may still be in use when generator yields
  --> $DIR/pattern-borrow.rs:19:24
   |
19 |         if let Test::A(ref _a) = test { //~ ERROR borrow may still be in use when generator yields
   |                        ^^^^^^
20 |             yield ();
   |             -------- possible yield occurs here

error: aborting due to previous error