]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-41394.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / issues / issue-41394.rs
1 enum Foo {
2     A = "" + 1
3     //~^ ERROR cannot add `{integer}` to `&str`
4 }
5
6 enum Bar {
7     A = Foo::A as isize
8     //~^ const
9 }
10
11 fn main() {}