summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-41394.rs
blob: 07cad8796e169cf7174ad5c459508385f28cdccd (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
    //~^ const
}

fn main() {}