1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-08-13 14:23:36 -04:00

Merge pull request from mo8it/move-semantics5-test

Convert exercises with assertions to tests
This commit is contained in:
liv 2023-09-06 09:31:46 +02:00 committed by GitHub
commit 4d04aad890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 5 deletions
exercises/move_semantics

View file

@ -1,6 +1,6 @@
// move_semantics3.rs
//
// Make me compile without adding new lines-- just changing existing lines! (no
// Make me compile without adding new lines -- just changing existing lines! (no
// lines with multiple semicolons necessary!)
//
// Execute `rustlings hint move_semantics3` or use the `hint` watch subcommand

View file

@ -8,6 +8,7 @@
// I AM NOT DONE
#[test]
fn main() {
let mut x = 100;
let y = &mut x;