Updated test #64

This commit is contained in:
2026-06-05 20:06:38 +02:00
parent a9eb77f158
commit 8c28e61e42
13 changed files with 836 additions and 15 deletions
+21
View File
@@ -0,0 +1,21 @@
#[derive(Debug)]
pub struct Debuggable {
value i32,
}
pub fn test_derive_attribute() {
let d = Debuggable { value: 42 };
assert_eq!(d.value, 42);
}
#[allow(unused_variables)]
pub fn test_allow_attribute() {
let x = 42;
let y = "unused";
assert_eq!(x, 42);
}
pub fn run_tests() {
test_derive_attribute();
test_allow_attribute();
}