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

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

21 lines
449 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 Trait {
#[stable(feature = "a", since = "1.1.1" )]
fn foo(&self) {}
}
#[stable(feature = "a", since = "1.1.1" )]
impl Trait for Vec<u32> {
fn foo(&self) {}
}
#[unstable_feature_bound(bar)]
#[unstable(feature = "bar", issue = "none" )]
impl Trait for Vec<u64> {
fn foo(&self) {}
}