diff --git a/src/test/run-pass/resolve-issue-2428.rs b/src/test/run-pass/resolve-issue-2428.rs new file mode 100644 index 0000000000000..86af4e99fbcdb --- /dev/null +++ b/src/test/run-pass/resolve-issue-2428.rs @@ -0,0 +1,5 @@ +// xfail-test + +const foo: int = 4 >> 1; +enum bs { thing = foo } +fn main() { assert(thing as int == foo); }