2015-01-10 07:38:51 -06:00
|
|
|
// Test that the `Fn` traits require `()` form without a feature gate.
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
fn bar1(x: &dyn Fn<(), Output=()>) {
|
2015-07-28 11:21:24 -05:00
|
|
|
//~^ ERROR of `Fn`-family traits' type parameters is subject to change
|
2015-01-10 07:38:51 -06:00
|
|
|
}
|
|
|
|
|
2015-01-12 09:27:25 -06:00
|
|
|
fn bar2<T>(x: &T) where T: Fn<()> {
|
2015-07-28 11:21:24 -05:00
|
|
|
//~^ ERROR of `Fn`-family traits' type parameters is subject to change
|
2015-01-10 07:38:51 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|