]> git.lizzy.rs Git - rust.git/blob - tests/ui/dropck/issue-38868.rs
Modify existing bounds if they exist
[rust.git] / tests / ui / dropck / issue-38868.rs
1 pub struct List<T> {
2     head: T,
3 }
4
5 impl Drop for List<i32> { //~ ERROR E0366
6     fn drop(&mut self) {
7         panic!()
8     }
9 }
10
11 fn main() {
12     List { head: 0 };
13 }