about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0161.rs
diff options
context:
space:
mode:
authormejrs <59372212+mejrs@users.noreply.github.com>2025-06-13 01:16:36 +0200
committermejrs <59372212+mejrs@users.noreply.github.com>2025-06-13 01:16:36 +0200
commitc0e02e26b39913ec1ee31621c65784542b137310 (patch)
tree840c5d2d5150ad40a5cf4cceff87164f3e24b8d4 /tests/ui/error-codes/E0161.rs
parent6c8138de8f1c96b2f66adbbc0e37c73525444750 (diff)
downloadrust-c0e02e26b39913ec1ee31621c65784542b137310.tar.gz
rust-c0e02e26b39913ec1ee31621c65784542b137310.zip
Unimplement unsized_locals
Diffstat (limited to 'tests/ui/error-codes/E0161.rs')
-rw-r--r--tests/ui/error-codes/E0161.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/ui/error-codes/E0161.rs b/tests/ui/error-codes/E0161.rs
index 3a9b93d2430..1ae2a67d60e 100644
--- a/tests/ui/error-codes/E0161.rs
+++ b/tests/ui/error-codes/E0161.rs
@@ -1,12 +1,7 @@
 // Check that E0161 is a hard error in all possible configurations that might
 // affect it.
 
-//@ revisions: base ul
-//@[base] check-fail
-//@[ul] check-pass
-
-#![allow(incomplete_features)]
-#![cfg_attr(ul, feature(unsized_locals))]
+#![crate_type = "lib"]
 
 trait Bar {
     fn f(self);
@@ -14,7 +9,5 @@ trait Bar {
 
 fn foo(x: Box<dyn Bar>) {
     x.f();
-    //[base]~^ ERROR E0161
+    //~^ ERROR E0161
 }
-
-fn main() {}