diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-08-31 06:29:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-31 06:29:11 -0700 |
| commit | 6631d8e9c6c67253f4c52a8ee5ac29e695fc9fdf (patch) | |
| tree | 85569107e784e62775565ba26cb58c0e39de014e /src/test | |
| parent | 93c5d6cfd79f785eb8c69ba97308f9144fa665b0 (diff) | |
| parent | 507fe146377171013e445783ba00ad8ff2c35e69 (diff) | |
| download | rust-6631d8e9c6c67253f4c52a8ee5ac29e695fc9fdf.tar.gz rust-6631d8e9c6c67253f4c52a8ee5ac29e695fc9fdf.zip | |
Rollup merge of #36147 - mikhail-m1:master, r=jonathandturner
update E0265 to new format Fixes #35309 as part of #35233. I've describe partially bonus achieve in #35309 r? @jonathandturner
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/issue-23302.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-23302.rs b/src/test/compile-fail/issue-23302.rs index 7ac8cf45edb..35f32d16a9a 100644 --- a/src/test/compile-fail/issue-23302.rs +++ b/src/test/compile-fail/issue-23302.rs @@ -12,13 +12,21 @@ // the appropriate error (rather than, say, blowing the stack). enum X { A = X::A as isize, //~ ERROR E0265 + //~^ NOTE recursion not allowed in constant } // Since `Y::B` here defaults to `Y::A+1`, this is also a // recursive definition. enum Y { A = Y::B as isize, //~ ERROR E0265 + //~^ NOTE recursion not allowed in constant B, } +const A: i32 = B; //~ ERROR E0265 + //~^ NOTE recursion not allowed in constant + +const B: i32 = A; //~ ERROR E0265 + //~^ NOTE recursion not allowed in constant + fn main() { } |
