mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-12 13:49:19 +00:00
15 lines
340 B
Rust
15 lines
340 B
Rust
// tests2.rs
|
|
// This test has a problem with it -- make the test compile! Make the test
|
|
// pass! Make the test fail!
|
|
// Execute `rustlings hint tests2` or use the `hint` watch subcommand for a hint.
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test]
|
|
fn you_can_assert_eq() {
|
|
let a = 10;
|
|
let b = 10;
|
|
assert_eq!(a, b);
|
|
}
|
|
}
|