]> git.lizzy.rs Git - rust.git/blob - 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
1 error: `?const` is not permitted in trait objects
2   --> $DIR/in-trait-object.rs:10:6
3    |
4 LL | impl ?const T {}
5    |      ^^^^^^^^
6
7 error: `?const` is not permitted in trait objects
8   --> $DIR/in-trait-object.rs:13:35
9    |
10 LL | fn trait_object() -> &'static dyn ?const T { &S }
11    |                                   ^^^^^^^^
12
13 error: `?const` is not permitted in trait objects
14   --> $DIR/in-trait-object.rs:16:61
15    |
16 LL | fn trait_object_in_apit(_: impl IntoIterator<Item = Box<dyn ?const T>>) {}
17    |                                                             ^^^^^^^^
18
19 error: aborting due to 3 previous errors
20