]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-65673.stderr
Apply suggestions from code review
[rust.git] / src / test / ui / traits / issue-65673.stderr
1 error[E0277]: the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time
2   --> $DIR/issue-65673.rs:9:5
3    |
4 LL |     type Ctx = dyn Alias<T>;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6    |
7    = help: the trait `Sized` is not implemented for `(dyn Trait + 'static)`
8 note: required by a bound in `WithType::Ctx`
9   --> $DIR/issue-65673.rs:4:5
10    |
11 LL |     type Ctx;
12    |     ^^^^^^^^^ required by this bound in `WithType::Ctx`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.