Auto merge of #28442 - nagisa:remove-enum-vis-field, r=alexcrichton
Followup on #28440 Do not merge before the referenced PR is merged. I will fix the PR once that is merged (or close if it is not)
This commit is contained in:
commit
72a10fa1d3
16 changed files with 15 additions and 51 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// 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.
|
||||
//
|
||||
|
|
@ -8,16 +8,14 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use zoo::bird::{duck, goose};
|
||||
|
||||
mod zoo {
|
||||
pub enum bird {
|
||||
pub duck, //~ ERROR: unnecessary `pub` visibility
|
||||
goose
|
||||
}
|
||||
enum bird {
|
||||
pub duck,
|
||||
//~^ ERROR: expected identifier, found keyword `pub`
|
||||
//~^^ ERROR: expected
|
||||
goose
|
||||
}
|
||||
|
||||
|
||||
fn main() {
|
||||
let y = goose;
|
||||
let y = bird::goose;
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct A { pub i: isize }
|
||||
pub enum C { pub Variant } //~ ERROR: unnecessary `pub`
|
||||
|
||||
pub trait E {
|
||||
fn foo(&self);
|
||||
Loading…
Add table
Add a link
Reference in a new issue