mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
tests: remove obsolete class attribute tests
This commit is contained in:
@@ -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()); }
|
||||
@@ -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());
|
||||
}
|
||||
Reference in New Issue
Block a user