summaryrefslogtreecommitdiffstats
path: root/tests/ui/mir/issue-67947.rs
blob: f73d38f80426f551b39c177b1503345795b1b98b (plain)
1
2
3
4
5
6
7
struct Bug {
    A: [(); { *"" }.len()],
    //~^ ERROR: cannot move a value of type `str`
    //~| ERROR: cannot move out of a shared reference
}

fn main() {}