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