Skip to content

Commit 0e2ad51

Browse files
committed
Fix tests
1 parent 9bdf054 commit 0e2ad51

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/test/ui/feature-gates/feature-gate-rustc-attrs-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
#[rustc_variance] //~ ERROR the `#[rustc_variance]` attribute is just used for rustc unit tests and will never be stable
66
#[rustc_error] //~ ERROR the `#[rustc_error]` attribute is just used for rustc unit tests and will never be stable
77

8-
fn main() {} //~ ERROR []
8+
fn main() {}

src/test/ui/feature-gates/feature-gate-rustc-attrs-1.stderr

+2-9
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ LL | #[rustc_error] //~ ERROR the `#[rustc_error]` attribute is just used for ru
1414
|
1515
= help: add #![feature(rustc_attrs)] to the crate attributes to enable
1616

17-
error[E0208]: []
18-
--> $DIR/feature-gate-rustc-attrs-1.rs:8:1
19-
|
20-
LL | fn main() {} //~ ERROR []
21-
| ^^^^^^^^^^^^
22-
23-
error: aborting due to 3 previous errors
17+
error: aborting due to 2 previous errors
2418

25-
Some errors occurred: E0208, E0658.
26-
For more information about an error, try `rustc --explain E0208`.
19+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)