summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/issue-52843.stderr
blob: acd40f9804ea03cab481a7fda5f5b8135f1d645d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0277]: the trait bound `T: Default` is not satisfied
  --> $DIR/issue-52843.rs:7:5
   |
LL |     t
   |     ^ the trait `Default` is not implemented for `T`
   |
help: consider restricting type parameter `T`
   |
LL | type Foo<T: std::default::Default> = impl Default;
   |           +++++++++++++++++++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.