about summary refs log tree commit diff
path: root/example/alloc_example.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-02-15 18:25:42 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-04-13 13:17:26 +0000
commit41866bf2f4a7ca12e095ce4782445fae67ad53a4 (patch)
tree141c893939bcf7ede08899442123fc5d1fa77b64 /example/alloc_example.rs
parent4435686a486e0228df34bf9ff739c1e27c836f22 (diff)
downloadrust-41866bf2f4a7ca12e095ce4782445fae67ad53a4.tar.gz
rust-41866bf2f4a7ca12e095ce4782445fae67ad53a4.zip
Fix a couple of 2018 edition warnings
Diffstat (limited to 'example/alloc_example.rs')
-rw-r--r--example/alloc_example.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/alloc_example.rs b/example/alloc_example.rs
index 4ede2fe4efe..d994e2fbc0a 100644
--- a/example/alloc_example.rs
+++ b/example/alloc_example.rs
@@ -18,7 +18,7 @@ extern "C" {
 }
 
 #[panic_handler]
-fn panic_handler(_: &core::panic::PanicInfo) -> ! {
+fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
     core::intrinsics::abort();
 }