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

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

20 lines
432 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" )]
/// Aux crate for unstable impl codegen test.
#[stable(feature = "a", since = "1.1.1" )]
pub trait Trait {
#[stable(feature = "a", since = "1.1.1" )]
fn method(&self);
}
#[unstable_feature_bound(foo)]
#[unstable(feature = "foo", issue = "none" )]
impl<T> Trait for T {
fn method(&self) {
println!("hi");
}
}