1 error[E0277]: the trait bound `fn(u32) -> Time {Time}: Resource` is not satisfied
2 --> $DIR/call-on-unimplemented-ctor.rs:3:21
4 LL | insert_resource(Time);
5 | --------------- ^^^^ the trait `Resource` is not implemented for fn item `fn(u32) -> Time {Time}`
7 | required by a bound introduced by this call
9 note: required by a bound in `insert_resource`
10 --> $DIR/call-on-unimplemented-ctor.rs:10:23
12 LL | fn insert_resource<R: Resource>(resource: R) {}
13 | ^^^^^^^^ required by this bound in `insert_resource`
14 help: use parentheses to construct this tuple struct
16 LL | insert_resource(Time(/* u32 */));
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0277`.