]>
git.proxmox.com Git - rustc.git/blob - src/test/compile-fail/privacy-sanity.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #![feature(associated_consts)]
12 #![feature(optin_builtin_traits)]
25 pub impl MarkerTr
for .. {}
//~ ERROR unnecessary visibility qualifier
26 pub impl Tr
for S
{ //~ ERROR unnecessary visibility qualifier
27 pub fn f() {}
//~ ERROR unnecessary visibility qualifier
28 pub const C
: u8 = 0; //~ ERROR unnecessary visibility qualifier
29 pub type T
= u8; //~ ERROR unnecessary visibility qualifier
31 pub impl S
{ //~ ERROR unnecessary visibility qualifier
36 pub extern "C" { //~ ERROR unnecessary visibility qualifier
53 pub impl MarkerTr
for .. {}
//~ ERROR unnecessary visibility qualifier
54 pub impl Tr
for S
{ //~ ERROR unnecessary visibility qualifier
55 pub fn f() {}
//~ ERROR unnecessary visibility qualifier
56 pub const C
: u8 = 0; //~ ERROR unnecessary visibility qualifier
57 pub type T
= u8; //~ ERROR unnecessary visibility qualifier
59 pub impl S
{ //~ ERROR unnecessary visibility qualifier
64 pub extern "C" { //~ ERROR unnecessary visibility qualifier
84 pub impl MarkerTr
for .. {}
//~ ERROR unnecessary visibility qualifier
85 pub impl Tr
for S
{ //~ ERROR unnecessary visibility qualifier
86 pub fn f() {}
//~ ERROR unnecessary visibility qualifier
87 pub const C
: u8 = 0; //~ ERROR unnecessary visibility qualifier
88 pub type T
= u8; //~ ERROR unnecessary visibility qualifier
90 pub impl S
{ //~ ERROR unnecessary visibility qualifier
95 pub extern "C" { //~ ERROR unnecessary visibility qualifier