]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-38821.stderr
Auto merge of #107044 - cuviper:more-llvm-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / issues / issue-38821.stderr
1 error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
2   --> $DIR/issue-38821.rs:23:17
3    |
4 LL | #[derive(Debug, Copy, Clone)]
5    |                 ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
6    |
7 note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
8   --> $DIR/issue-38821.rs:9:18
9    |
10 LL | impl<T: NotNull> IntoNullable for T {
11    |         -------  ^^^^^^^^^^^^     ^
12    |         |
13    |         unsatisfied trait bound introduced here
14    = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
15 help: consider further restricting the associated type
16    |
17 LL |     Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull,
18    |                                                                       +++++++++++++++++++++++++++++++++++++++
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0277`.