]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-1937-termination-trait/issue-103052-1.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / rfc-1937-termination-trait / issue-103052-1.stderr
1 error[E0277]: the trait bound `Something: Termination` is not satisfied
2   --> $DIR/issue-103052-1.rs:10:13
3    |
4 LL |     receive(Something);
5    |     ------- ^^^^^^^^^ the trait `Termination` is not implemented for `Something`
6    |     |
7    |     required by a bound introduced by this call
8    |
9 note: required by a bound in `receive`
10   --> $DIR/issue-103052-1.rs:5:20
11    |
12 LL | fn receive(_: impl std::process::Termination) {}
13    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `receive`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.