]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/const-trait-bound-opt-out/in-trait-object.stderr
Rollup merge of #68342 - lcnr:type_name_docs, r=Dylan-DPC
[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:14: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:18:61
15    |
16 LL | fn trait_object_in_apit(_: impl IntoIterator<Item = Box<dyn ?const T>>) {}
17    |                                                             ^^^^^^^^
18
19 error: `?const` on trait bounds is not yet implemented
20   --> $DIR/in-trait-object.rs:10:6
21    |
22 LL | impl ?const T {}
23    |      ^^^^^^^^
24
25 error: `?const` on trait bounds is not yet implemented
26   --> $DIR/in-trait-object.rs:14:35
27    |
28 LL | fn trait_object() -> &'static dyn ?const T { &S }
29    |                                   ^^^^^^^^
30
31 error: `?const` on trait bounds is not yet implemented
32   --> $DIR/in-trait-object.rs:18:61
33    |
34 LL | fn trait_object_in_apit(_: impl IntoIterator<Item = Box<dyn ?const T>>) {}
35    |                                                             ^^^^^^^^
36
37 error: aborting due to 6 previous errors
38