Files
rust/tests/ui/unstable-feature-bound/unstable-feature-cross-crate-require-bound.rs

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

15 lines
342 B
Rust
Raw Normal View History

2025-07-14 13:38:36 +00:00
//@ aux-build:unstable_feature.rs
//@ revisions: pass fail
//@[pass] check-pass
#![cfg_attr(pass, feature(feat_bar))]
extern crate unstable_feature;
use unstable_feature::{Foo, Bar};
/// #[feature(..)] is required to use unstable impl.
fn main() {
Bar::foo();
//[fail]~^ ERROR: use of unstable library feature `feat_bar` [E0658]
}