update ui tests
This commit is contained in:
parent
f4148a6adb
commit
442947199c
@ -1,4 +1,4 @@
|
||||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
@ -15,6 +15,5 @@
|
||||
|
||||
#[used]
|
||||
fn foo() {}
|
||||
//~^^ ERROR the `#[used]` attribute is an experimental feature
|
||||
|
||||
fn main() {}
|
||||
|
@ -1,11 +1,8 @@
|
||||
error[E0658]: the `#[used]` attribute is an experimental feature (see issue #40289)
|
||||
error: attribute must be applied to a `static` variable
|
||||
--> $DIR/feature-gate-linker-flavor.rs:16:1
|
||||
|
|
||||
LL | #[used]
|
||||
| ^^^^^^^
|
||||
|
|
||||
= help: add #![feature(used)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
||||
|
@ -1,15 +0,0 @@
|
||||
// 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.
|
||||
|
||||
#[used]
|
||||
fn foo() {}
|
||||
//~^^ ERROR the `#[used]` attribute is an experimental feature
|
||||
|
||||
fn main() {}
|
@ -1,11 +0,0 @@
|
||||
error[E0658]: the `#[used]` attribute is an experimental feature (see issue #40289)
|
||||
--> $DIR/feature-gate-used.rs:11:1
|
||||
|
|
||||
LL | #[used]
|
||||
| ^^^^^^^
|
||||
|
|
||||
= help: add #![feature(used)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
@ -1,23 +1,23 @@
|
||||
error: attribute must be applied to a `static` variable
|
||||
--> $DIR/used.rs:16:1
|
||||
--> $DIR/used.rs:14:1
|
||||
|
|
||||
LL | #[used] //~ ERROR attribute must be applied to a `static` variable
|
||||
| ^^^^^^^
|
||||
|
||||
error: attribute must be applied to a `static` variable
|
||||
--> $DIR/used.rs:19:1
|
||||
--> $DIR/used.rs:17:1
|
||||
|
|
||||
LL | #[used] //~ ERROR attribute must be applied to a `static` variable
|
||||
| ^^^^^^^
|
||||
|
||||
error: attribute must be applied to a `static` variable
|
||||
--> $DIR/used.rs:22:1
|
||||
--> $DIR/used.rs:20:1
|
||||
|
|
||||
LL | #[used] //~ ERROR attribute must be applied to a `static` variable
|
||||
| ^^^^^^^
|
||||
|
||||
error: attribute must be applied to a `static` variable
|
||||
--> $DIR/used.rs:25:1
|
||||
--> $DIR/used.rs:23:1
|
||||
|
|
||||
LL | #[used] //~ ERROR attribute must be applied to a `static` variable
|
||||
| ^^^^^^^
|
||||
|
Loading…
x
Reference in New Issue
Block a user