rust/tests/ui/mir/issue-67947.rs
2023-01-11 09:32:08 +00:00

8 lines
161 B
Rust

struct Bug {
A: [(); { *"" }.len()],
//~^ ERROR: cannot move a value of type `str`
//~| ERROR: cannot move out of a shared reference
}
fn main() {}