2020-03-21 22:40:05 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
#[cfg(FALSE)]
|
|
|
|
fn syntax() {
|
|
|
|
foo::<T = u8, T: Ord, String>();
|
2022-08-17 06:52:47 -05:00
|
|
|
//~^ WARN associated type bounds are unstable
|
|
|
|
//~| WARN unstable syntax
|
2020-03-21 22:40:05 -05:00
|
|
|
foo::<T = u8, 'a, T: Ord>();
|
2022-08-17 06:52:47 -05:00
|
|
|
//~^ WARN associated type bounds are unstable
|
|
|
|
//~| WARN unstable syntax
|
2020-03-21 22:40:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|