update ui tests

This commit is contained in:
Jorge Aparicio 2018-09-09 22:08:42 +02:00
parent f4148a6adb
commit 442947199c
5 changed files with 6 additions and 36 deletions

View File

@ -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() {}

View File

@ -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`.

View File

@ -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() {}

View File

@ -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`.

View File

@ -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
| ^^^^^^^