]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2632-const-trait-impl/const-trait-bound-opt-out/in-trait-object.stderr
Update tests
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / const-trait-bound-opt-out / in-trait-object.stderr
index 19d52e51b3797e851c3da52b1d5ba3de4c5c71ce..331fe0423fa9499abfedb7cb525dbc99bc9fb178 100644 (file)
@@ -5,22 +5,16 @@ LL | impl ?const T {}
    |      ^^^^^^^^
 
 error: `?const` is not permitted in trait objects
-  --> $DIR/in-trait-object.rs:14:35
+  --> $DIR/in-trait-object.rs:13:35
    |
 LL | fn trait_object() -> &'static dyn ?const T { &S }
    |                                   ^^^^^^^^
 
-error: `?const` on trait bounds is not yet implemented
-  --> $DIR/in-trait-object.rs:10:6
-   |
-LL | impl ?const T {}
-   |      ^^^^^^^^
-
-error: `?const` on trait bounds is not yet implemented
-  --> $DIR/in-trait-object.rs:14:35
+error: `?const` is not permitted in trait objects
+  --> $DIR/in-trait-object.rs:16:61
    |
-LL | fn trait_object() -> &'static dyn ?const T { &S }
-   |                                   ^^^^^^^^
+LL | fn trait_object_in_apit(_: impl IntoIterator<Item = Box<dyn ?const T>>) {}
+   |                                                             ^^^^^^^^
 
-error: aborting due to 4 previous errors
+error: aborting due to 3 previous errors