summaryrefslogtreecommitdiffstats
path: root/tests/ui/lazy-type-alias/extern-crate-has-lazy-type-aliases.locally_lazy.stderr
blob: fdc5bae153790d5a54a4c990e20ad782c668792e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0277]: the trait bound `String: Copy` is not satisfied
  --> $DIR/extern-crate-has-lazy-type-aliases.rs:15:24
   |
LL |     let _: lazy::Alias<String>;
   |                        ^^^^^^ the trait `Copy` is not implemented for `String`
   |
note: required by a bound in `lazy::Alias`
  --> $DIR/auxiliary/lazy.rs:4:19
   |
LL | pub type Alias<T: Copy> = Option<T>;
   |                   ^^^^ required by this bound in `Alias`

error: aborting due to 1 previous error

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