summaryrefslogtreecommitdiffstats
path: root/tests/ui/dropck/issue-38868.rs
blob: b0e5c371345dfe43f9b69a9ef8b4743b7cb9c9bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub struct List<T> {
    head: T,
}

impl Drop for List<i32> { //~ ERROR E0366
    fn drop(&mut self) {
        panic!()
    }
}

fn main() {
    List { head: 0 };
}