File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
src/test/ui/rfc-2632-const-trait-impl/const-trait-bound-opt-out Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ #![ feature( const_trait_bound_opt_out) ]
2+ #![ allow( incomplete_features) ]
3+
4+ struct S < T : ?const ?Sized > ( std:: marker:: PhantomData < T > ) ;
5+ //~^ ERROR `?const` and `?` are mutually exclusive
6+ //~| ERROR `?const` on trait bounds is not yet implemented
7+
8+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ error: `?const` and `?` are mutually exclusive
2+ --> $DIR/with-maybe-sized.rs:4:13
3+ |
4+ LL | struct S<T: ?const ?Sized>(std::marker::PhantomData<T>);
5+ | ^^^^^^^^^^^^^
6+
7+ error: `?const` on trait bounds is not yet implemented
8+ --> $DIR/with-maybe-sized.rs:4:13
9+ |
10+ LL | struct S<T: ?const ?Sized>(std::marker::PhantomData<T>);
11+ | ^^^^^^^^^^^^^
12+
13+ error: aborting due to 2 previous errors
14+
You can’t perform that action at this time.
0 commit comments