Skip to content

Commit 578b722

Browse files
committed
WIP: cause a warning
1 parent 44a4c03 commit 578b722

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/alloc/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl Error for AllocError {}
4242
#[unstable(feature = "allocator_api", issue = "32838")]
4343
impl fmt::Display for AllocError {
4444
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
45+
let a = 5;
4546
f.write_str("memory allocation failed")
4647
}
4748
}

0 commit comments

Comments
 (0)