This commit is contained in:
2026-06-05 12:32:12 +02:00
parent 0955bca5bc
commit d5501ef25e
14 changed files with 821 additions and 11 deletions
+21
View File
@@ -0,0 +1,21 @@
#[derive(Debug)]
pub struct Debuggable {
Int value,
}
pub void test_derive_attribute() {
let d = Debuggable { value: 42 };
assert_eq!(d.value, 42);
}
#[allow(unused_variables)]
pub void test_allow_attribute() {
let x = 42;
let y = "unused";
assert_eq!(x, 42);
}
pub void run_tests() {
test_derive_attribute();
test_allow_attribute();
}