Files
rust/tests/ui/unstable-feature-bound/auxiliary/unstable_feature.rs

26 lines
588 B
Rust
Raw Normal View History

2025-07-14 13:38:36 +00:00
#![allow(internal_features)]
#![feature(staged_api)]
#![stable(feature = "a", since = "1.1.1" )]
#[stable(feature = "a", since = "1.1.1" )]
pub trait Foo {
#[stable(feature = "a", since = "1.1.1" )]
fn foo();
}
#[stable(feature = "a", since = "1.1.1" )]
pub struct Bar;
#[stable(feature = "a", since = "1.1.1" )]
pub struct Moo;
#[unstable_feature_bound(feat_bar)]
#[unstable(feature = "feat_bar", issue = "none" )]
impl Foo for Bar {
fn foo() {}
}
#[unstable_feature_bound(feat_moo)]
#[unstable(feature = "feat_moo", issue = "none" )]
impl Foo for Moo {
fn foo() {}
}