rust/tests/ui/error-codes/E0789.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
385 B
Rust
Raw Normal View History

2023-01-21 08:32:05 +00:00
//@ compile-flags: --crate-type lib
#![feature(rustc_attrs)]
#![feature(staged_api)]
#![unstable(feature = "foo_module", reason = "...", issue = "123")]
#[rustc_allowed_through_unstable_modules = "use stable path instead"]
2023-01-21 08:32:05 +00:00
// #[stable(feature = "foo", since = "1.0")]
struct Foo;
//~^ ERROR `rustc_allowed_through_unstable_modules` attribute must be paired with a `stable` attribute