about summary refs log tree commit diff
path: root/tests/ui/parser
diff options
context:
space:
mode:
authorLukas Wirth <lukas.wirth@ferrous-systems.com>2025-06-03 09:48:03 +0200
committerLukas Wirth <lukas.wirth@ferrous-systems.com>2025-06-03 13:28:38 +0200
commit4fc62e0d5697b8c59297fd34fdf7c4ad8e0efe0d (patch)
tree314b23a96d748738ea47e02681f65c249f4f243c /tests/ui/parser
parentb17dba45186c454576d0fc8fb93ecc65eb1a763a (diff)
downloadrust-4fc62e0d5697b8c59297fd34fdf7c4ad8e0efe0d.tar.gz
rust-4fc62e0d5697b8c59297fd34fdf7c4ad8e0efe0d.zip
Add missing `dyn` keywords to tests that do not test for them Part 2
Diffstat (limited to 'tests/ui/parser')
-rw-r--r--tests/ui/parser/bounds-obj-parens.rs4
-rw-r--r--tests/ui/parser/trailing-plus-in-bounds.rs4
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/ui/parser/bounds-obj-parens.rs b/tests/ui/parser/bounds-obj-parens.rs
index eea4bccdc09..5ba90b50d2f 100644
--- a/tests/ui/parser/bounds-obj-parens.rs
+++ b/tests/ui/parser/bounds-obj-parens.rs
@@ -1,7 +1,5 @@
 //@ check-pass
 
-#![allow(bare_trait_objects)]
-
-type A = Box<(Fn(u8) -> u8) + 'static + Send + Sync>; // OK (but see #39318)
+type A = Box<dyn (Fn(u8) -> u8) + 'static + Send + Sync>; // OK (but see #39318)
 
 fn main() {}
diff --git a/tests/ui/parser/trailing-plus-in-bounds.rs b/tests/ui/parser/trailing-plus-in-bounds.rs
index ef9bdadb282..aa5bc3aca59 100644
--- a/tests/ui/parser/trailing-plus-in-bounds.rs
+++ b/tests/ui/parser/trailing-plus-in-bounds.rs
@@ -1,9 +1,7 @@
 //@ check-pass
 
-#![allow(bare_trait_objects)]
-
 use std::fmt::Debug;
 
 fn main() {
-    let x: Box<Debug+> = Box::new(3) as Box<Debug+>; // Trailing `+` is OK
+    let x: Box<dyn Debug+> = Box::new(3) as Box<dyn Debug+>; // Trailing `+` is OK
 }