2023-07-27 10:51:02 -05:00
|
|
|
// known-bug: #110395
|
|
|
|
// check-pass
|
|
|
|
|
2021-12-17 06:39:55 -06:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
2022-10-03 12:08:42 -05:00
|
|
|
#[const_trait]
|
2021-12-17 06:39:55 -06:00
|
|
|
trait Tr {}
|
|
|
|
impl Tr for () {}
|
|
|
|
|
|
|
|
const fn foo<T>() where T: ~const Tr {}
|
|
|
|
|
2022-03-16 04:49:54 -05:00
|
|
|
#[const_trait]
|
2021-12-17 06:39:55 -06:00
|
|
|
pub trait Foo {
|
|
|
|
fn foo() {
|
|
|
|
foo::<()>();
|
2023-07-29 03:20:25 -05:00
|
|
|
//FIXME ~^ ERROR the trait bound `(): Tr` is not satisfied
|
2021-12-17 06:39:55 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|