Skip to content

Commit

Permalink
Fix stability-attribute-sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-D-coder committed Jan 23, 2020
1 parent 57cdd33 commit 8bcf35d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn multiple3() { }
#[rustc_const_unstable(feature = "c", issue = "none")]
#[rustc_const_unstable(feature = "d", issue = "none")] //~ ERROR multiple stability levels
pub const fn multiple4() { } //~ ERROR multiple rustc_deprecated attributes [E0540]
//~^ ERROR Invalid stability or deprecation version found
//~^ ERROR item has an invalid stability or deprecation version

#[rustc_deprecated(since = "a", reason = "text")]
fn deprecated_without_unstable_or_stable() { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ error[E0544]: multiple stability levels
LL | #[rustc_const_unstable(feature = "d", issue = "none")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: Invalid stability or deprecation version found
error: item has an invalid stability or deprecation version
--> $DIR/stability-attribute-sanity.rs:65:1
|
LL | pub const fn multiple4() { }
Expand Down

0 comments on commit 8bcf35d

Please sign in to comment.