1 error: `?const` is not permitted in trait objects
2 --> $DIR/in-trait-object.rs:10:6
7 error: `?const` is not permitted in trait objects
8 --> $DIR/in-trait-object.rs:13:35
10 LL | fn trait_object() -> &'static dyn ?const T { &S }
13 error: `?const` is not permitted in trait objects
14 --> $DIR/in-trait-object.rs:16:61
16 LL | fn trait_object_in_apit(_: impl IntoIterator<Item = Box<dyn ?const T>>) {}
19 error: aborting due to 3 previous errors