about summary refs log tree commit diff
path: root/tests/ui/allocator
diff options
context:
space:
mode:
authorLukas Wirth <lukas.wirth@ferrous-systems.com>2025-06-02 10:11:10 +0200
committerLukas Wirth <lukas.wirth@ferrous-systems.com>2025-06-02 11:02:50 +0200
commitaba70e8f9d66dce7d9980808cc1ce88fab967d3d (patch)
tree259cfed27a4a9b872b5f53bd91e17769582ee3bd /tests/ui/allocator
parent91fad92585b2dafc52a074e502b2a6c1f093ca35 (diff)
downloadrust-aba70e8f9d66dce7d9980808cc1ce88fab967d3d.tar.gz
rust-aba70e8f9d66dce7d9980808cc1ce88fab967d3d.zip
Add missing `dyn` keywords to tests that do not test for them
This ensures that these tests can be run on editions other than 2015
Diffstat (limited to 'tests/ui/allocator')
-rw-r--r--tests/ui/allocator/auxiliary/helper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/allocator/auxiliary/helper.rs b/tests/ui/allocator/auxiliary/helper.rs
index c638546a947..4267b901ca0 100644
--- a/tests/ui/allocator/auxiliary/helper.rs
+++ b/tests/ui/allocator/auxiliary/helper.rs
@@ -6,6 +6,6 @@
 extern crate alloc;
 use alloc::fmt;
 
-pub fn work_with(p: &fmt::Debug) {
+pub fn work_with(p: &dyn fmt::Debug) {
     drop(p);
 }