]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/issue-38868.stderr
Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup
[rust.git] / src / test / ui / dropck / issue-38868.stderr
1 error[E0366]: `Drop` impls cannot be specialized
2   --> $DIR/issue-38868.rs:5:1
3    |
4 LL | impl Drop for List<i32> {
5    | ^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `i32` is not a generic parameter
8 note: use the same sequence of generic lifetime, type and const parameters as the struct definition
9   --> $DIR/issue-38868.rs:1:1
10    |
11 LL | pub struct List<T> {
12    | ^^^^^^^^^^^^^^^^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0366`.