Files
rust/tests/run-make/const-trait-stable-toolchain/const-super-trait.rs
2025-08-06 16:55:50 +01:00

14 lines
182 B
Rust

#![cfg_attr(feature_enabled, feature(const_trait_impl))]
trait Foo {
fn a(&self);
}
trait Bar: [const] Foo {}
const fn foo<T: [const] Bar>(x: &T) {
x.a();
}
fn main() {}