Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/tools/compile_fail_utils/tests/example_tests/pass_test.rs
6598 views
1
//@check-pass
2
3
// This code is expected to compile correctly.
4
fn correct_borrowing() {
5
let x = String::new();
6
let y = &x;
7
8
println!("{x}");
9
println!("{y}");
10
}
11
12