]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/drop-on-non-struct.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / dropck / drop-on-non-struct.rs
1 impl<'a> Drop for &'a mut isize {
2     //~^ ERROR the Drop trait may only be implemented on structures
3     //~^^ ERROR E0117
4     fn drop(&mut self) {
5         println!("kaboom");
6     }
7 }
8
9 fn main() {
10 }