diff options
Diffstat (limited to 'tests/ui/issues/issue-31910.rs')
-rw-r--r-- | tests/ui/issues/issue-31910.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-31910.rs b/tests/ui/issues/issue-31910.rs new file mode 100644 index 000000000..e0655d3f6 --- /dev/null +++ b/tests/ui/issues/issue-31910.rs @@ -0,0 +1,11 @@ +enum Enum<T: Trait> { + X = Trait::Number, + //~^ ERROR mismatched types + //~| expected `isize`, found `i32` +} + +trait Trait { + const Number: i32 = 1; +} + +fn main() {} |