Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
rfcs
/
rfc-2632-const-trait-impl
/
issue-88155.rs
blob: 08739de831389594f98e8a48590ced7829ed1252 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
()
{}