Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
rfc-2632-const-trait-impl
/
issue-88155.rs
blob: b132c395ac7b4f208bc6cdfc3a6b468d81f6e1d1 [
file
] [
log
] [
blame
]
#![
feature
(
const_trait_impl
)]
pub
trait
A
{
fn
assoc
()
->
bool
;
}
pub
const
fn
foo
<
T
:
A
>()
->
bool
{
T
::
assoc
()
//~^ ERROR the trait bound
//~| ERROR cannot call non-const fn
}
fn
main
()
{}