2021-09-02 15:20:51 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
2021-09-02 15:30:13 -05:00
|
|
|
#![allow(incomplete_features)]
|
2021-09-02 15:20:51 -05:00
|
|
|
|
|
|
|
pub trait X {
|
|
|
|
const Y: usize;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn z<T>(t: T)
|
|
|
|
where
|
|
|
|
T: X,
|
|
|
|
[(); T::Y]: ,
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
fn unit_literals() {
|
|
|
|
z(" ");
|
|
|
|
//~^ ERROR: the trait bound `&str: X` is not satisfied
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|