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

16 lines
244 B
Rust
Raw Normal View History

2023-07-27 15:51:02 +00:00
// known-bug: #110395
2021-08-26 17:58:28 +00:00
#![feature(const_trait_impl)]
pub trait A {
fn assoc() -> bool;
}
pub const fn foo<T: A>() -> bool {
T::assoc()
2023-07-27 15:51:02 +00:00
//FIXME ~^ ERROR the trait bound
//FIXME ~| ERROR cannot call non-const fn
2021-08-26 17:58:28 +00:00
}
fn main() {}