mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 15:13:48 +00:00
11 lines
128 B
Rust
11 lines
128 B
Rust
enum Foo {
|
|
A = "" + 1
|
|
//~^ ERROR cannot add `{integer}` to `&str`
|
|
}
|
|
|
|
enum Bar {
|
|
A = Foo::A as isize
|
|
}
|
|
|
|
fn main() {}
|