]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/generic_underconstrained.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / existential_types / generic_underconstrained.stderr
1 error[E0277]: the trait bound `T: Trait` is not satisfied
2   --> $DIR/generic_underconstrained.rs:6:1
3    |
4 LL | existential type Underconstrained<T: Trait>: 'static; //~ ERROR the trait bound `T: Trait`
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `T`
6    |
7    = help: consider adding a `where T: Trait` bound
8    = note: the return type of a function must have a statically known size
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.