tests: remove obsolete class attribute tests

This commit is contained in:
SynapLink
2026-04-27 20:43:24 +02:00
parent 9854d7e82a
commit d7184b76a7
2 changed files with 0 additions and 50 deletions
-19
View File
@@ -1,19 +0,0 @@
//@ check-pass
//@ pp-exact - Make sure we actually print the attributes
#![feature(rustc_attrs)]
struct Cat {
name: String,
}
impl Drop for Cat {
#[rustc_dummy]
fn drop(&mut self) { println!("{} landed on hir feet" , self . name); }
}
#[rustc_dummy]
fn cat(name: String) -> Cat { Cat{name: name,} }
fn main() { let _kitty = cat("Spotty".to_string()); }
-31
View File
@@ -1,31 +0,0 @@
//@ check-pass
#![feature(rustc_attrs)]
struct Cat {
name: String,
}
impl Drop for Cat {
#[rustc_dummy]
/**
Actually, cats don't always land on their feet when you drop them.
*/
fn drop(&mut self) {
println!("{} landed on hir feet", self.name);
}
}
#[rustc_dummy]
/**
Maybe it should technically be a kitten_maker.
*/
fn cat(name: String) -> Cat {
Cat {
name: name
}
}
fn main() {
let _kitty = cat("Spotty".to_string());
}