|
55 | 55 | //~| HELP can only be applied to |
56 | 56 | //~| HELP remove the attribute |
57 | 57 | #![no_implicit_prelude] |
58 | | -#![reexport_test_harness_main = "2900"] |
59 | 58 | // see gated-link-args.rs |
60 | 59 | // see issue-43106-gating-of-macro_escape.rs for crate-level; but non crate-level is below at "2700" |
61 | 60 | // (cannot easily test gating of crate-level #[no_std]; but non crate-level is below at "2600") |
@@ -465,30 +464,6 @@ mod no_implicit_prelude { |
465 | 464 | //~| HELP remove the attribute |
466 | 465 | } |
467 | 466 |
|
468 | | -#[reexport_test_harness_main = "2900"] |
469 | | -//~^ WARN crate-level attribute should be |
470 | | -mod reexport_test_harness_main { |
471 | | -//~^ NOTE this attribute does not have an `!`, which means it is applied to this module |
472 | | - mod inner { #![reexport_test_harness_main="2900"] } |
473 | | - //~^ WARN the `#![reexport_test_harness_main]` attribute can only be used at the crate root |
474 | | - |
475 | | - #[reexport_test_harness_main = "2900"] fn f() { } |
476 | | - //~^ WARN crate-level attribute should be |
477 | | - //~| NOTE this attribute does not have an `!`, which means it is applied to this function |
478 | | - |
479 | | - #[reexport_test_harness_main = "2900"] struct S; |
480 | | - //~^ WARN crate-level attribute should be |
481 | | - //~| NOTE this attribute does not have an `!`, which means it is applied to this struct |
482 | | - |
483 | | - #[reexport_test_harness_main = "2900"] type T = S; |
484 | | - //~^ WARN crate-level attribute should be |
485 | | - //~| NOTE this attribute does not have an `!`, which means it is applied to this type alias |
486 | | - |
487 | | - #[reexport_test_harness_main = "2900"] impl S { } |
488 | | - //~^ WARN crate-level attribute should be |
489 | | - //~| NOTE this attribute does not have an `!`, which means it is applied to this implementation block |
490 | | -} |
491 | | - |
492 | 467 | // Cannot feed "2700" to `#[macro_escape]` without signaling an error. |
493 | 468 | #[macro_escape] |
494 | 469 | //~^ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]` |
|
0 commit comments