diff options
| author | bors <bors@rust-lang.org> | 2017-05-29 09:04:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-29 09:04:08 +0000 |
| commit | be5f4fe6cc7179b900eb31ee3e9235fd12bd04c7 (patch) | |
| tree | 308f4d1790d5ca8996329b386537d9554da064c9 /src/test | |
| parent | 911192764ddfe7a869c75d9167a8e95bcc3b8684 (diff) | |
| parent | 918875f32dfeb1d983bb2eabce482e173bebcf84 (diff) | |
| download | rust-be5f4fe6cc7179b900eb31ee3e9235fd12bd04c7.tar.gz rust-be5f4fe6cc7179b900eb31ee3e9235fd12bd04c7.zip | |
Auto merge of #42262 - Mark-Simulacrum:issue-40350, r=eddyb
Don't ICE with nested enums in missing docs lint. Fixes #40350.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/issue-40350.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-40350.rs b/src/test/compile-fail/issue-40350.rs new file mode 100644 index 00000000000..39249ee4718 --- /dev/null +++ b/src/test/compile-fail/issue-40350.rs @@ -0,0 +1,24 @@ +// Copyright 2017 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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(rustc_attrs)] +#![allow(warnings)] + +enum E { + A = { + enum F { B } + 0 + } +} + +#[rustc_error] +fn main() {} +//~^ ERROR compilation successful + |
