]> git.proxmox.com Git - rustc.git/blame - src/test/ui/wf/wf-const-type.stderr
New upstream version 1.47.0+dfsg1
[rustc.git] / src / test / ui / wf / wf-const-type.stderr
CommitLineData
b7449926 1error[E0277]: the trait bound `NotCopy: std::marker::Copy` is not satisfied
0731742a 2 --> $DIR/wf-const-type.rs:10:12
b7449926 3 |
e1599b0c 4LL | struct IsCopy<T:Copy> { t: T }
ba9703b0 5 | ---- required by this bound in `IsCopy`
e1599b0c 6...
b7449926 7LL | const FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
0bf4aa26 8 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `NotCopy`
b7449926
XL
9 |
10 = note: required because of the requirements on the impl of `std::marker::Copy` for `std::option::Option<NotCopy>`
b7449926
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.