From 3c20bd4d81bc49e3345180c8abfd293c3bd86c34 Mon Sep 17 00:00:00 2001 From: Andrew Paseltiner Date: Sun, 1 Nov 2015 17:55:09 -0500 Subject: [PATCH] Add test for #23217 Closes #23217. --- src/test/compile-fail/issue-23217.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/test/compile-fail/issue-23217.rs diff --git a/src/test/compile-fail/issue-23217.rs b/src/test/compile-fail/issue-23217.rs new file mode 100644 index 0000000000000..32cdd6b5ed9f2 --- /dev/null +++ b/src/test/compile-fail/issue-23217.rs @@ -0,0 +1,16 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +pub enum SomeEnum { + B = SomeEnum::A, + //~^ ERROR constant evaluation error: unresolved path in constant expression +} + +fn main() {}