summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-41394.rs
blob: 64873ac35a00213e78fc7479e75ba180f5029a34 (plain)
1
2
3
4
5
6
7
8
9
10
11
enum Foo {
    A = "" + 1
    //~^ ERROR cannot add `{integer}` to `&str`
}

enum Bar {
    A = Foo::A as isize
    //~^ ERROR evaluation of constant value failed
}

fn main() {}