mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
16 lines
244 B
Rust
16 lines
244 B
Rust
// known-bug: #110395
|
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
pub trait A {
|
|
fn assoc() -> bool;
|
|
}
|
|
|
|
pub const fn foo<T: A>() -> bool {
|
|
T::assoc()
|
|
//FIXME ~^ ERROR the trait bound
|
|
//FIXME ~| ERROR cannot call non-const fn
|
|
}
|
|
|
|
fn main() {}
|