]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/call-on-unimplemented-ctor.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / call-on-unimplemented-ctor.stderr
1 error[E0277]: the trait bound `fn(u32) -> Time {Time}: Resource` is not satisfied
2   --> $DIR/call-on-unimplemented-ctor.rs:3:21
3    |
4 LL |     insert_resource(Time);
5    |     --------------- ^^^^ the trait `Resource` is not implemented for fn item `fn(u32) -> Time {Time}`
6    |     |
7    |     required by a bound introduced by this call
8    |
9 note: required by a bound in `insert_resource`
10   --> $DIR/call-on-unimplemented-ctor.rs:10:23
11    |
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
15    |
16 LL |     insert_resource(Time(/* u32 */));
17    |                         +++++++++++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.