about summary refs log tree commit diff
path: root/tests/ui/const-generics/not_wf_param_in_rpitit.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-23 18:32:10 +0000
committerMichael Goulet <michael@errs.io>2024-11-23 23:31:30 +0000
commitcfa8fcbf581c8c311e079b04517cbe979d9beb7b (patch)
treeef8f35d148daf7787be7b284b2a7da5f8c0aa404 /tests/ui/const-generics/not_wf_param_in_rpitit.rs
parent898ccdb75426f5fb5c58e8057a83d015640613b8 (diff)
downloadrust-cfa8fcbf581c8c311e079b04517cbe979d9beb7b.tar.gz
rust-cfa8fcbf581c8c311e079b04517cbe979d9beb7b.zip
Dont create trait object if it has errors in it
Diffstat (limited to 'tests/ui/const-generics/not_wf_param_in_rpitit.rs')
-rw-r--r--tests/ui/const-generics/not_wf_param_in_rpitit.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/ui/const-generics/not_wf_param_in_rpitit.rs b/tests/ui/const-generics/not_wf_param_in_rpitit.rs
index b454562ad49..cb1e90923e7 100644
--- a/tests/ui/const-generics/not_wf_param_in_rpitit.rs
+++ b/tests/ui/const-generics/not_wf_param_in_rpitit.rs
@@ -3,9 +3,6 @@
 trait Trait<const N: dyn Trait = bar> {
     //~^ ERROR: cannot find value `bar` in this scope
     //~| ERROR: cycle detected when computing type of `Trait::N`
-    //~| ERROR: the trait `Trait` cannot be made into an object
-    //~| ERROR: the trait `Trait` cannot be made into an object
-    //~| ERROR: the trait `Trait` cannot be made into an object
     async fn a() {}
 }