rust/tests/ui/mir/issue-67947.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
161 B
Rust
Raw Normal View History

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