Updated tests and fixed grammar

This commit is contained in:
2026-06-23 03:44:54 +02:00
parent 2ae4ca510d
commit 2f6303ba30
14 changed files with 135 additions and 134 deletions
+4 -4
View File
@@ -2,22 +2,22 @@ pub module attribute_test;
#[derive(Debug)]
pub struct Debuggable {
value i32,
i32 value,
}
pub fn void test_derive_attribute() {
pub void test_derive_attribute() {
let d = Debuggable { value: 42 };
assert_eq!(d.value, 42);
}
#[allow(unused_variables)]
pub fn void test_allow_attribute() {
pub void test_allow_attribute() {
let x = 42;
let y = "unused";
assert_eq!(x, 42);
}
pub fn void run_tests() {
pub void run_tests() {
test_derive_attribute();
test_allow_attribute();
}