blob: 34389d2d00a2c9783d8aa57f8bde82857c71b983 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//@ compile-flags: -Zvalidate-mir
//@ edition: 2021
// NOT copy.
struct Ty;
fn hello(x: &Ty) {
let c = async || {
*x;
//~^ ERROR cannot move out of `*x` which is behind a shared reference
};
}
fn main() {}
|