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

enum Bar {
    A = Foo::A as isize
}

fn main() {}