summaryrefslogtreecommitdiffstats
path: root/tests/ui/lazy-type-alias/extern-crate-has-lazy-type-aliases.rs
blob: 31a19161b6c961c7b2895853526cca8370d8a0c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// revisions: locally_eager locally_lazy
// aux-crate:lazy=lazy.rs
// edition: 2021

// Test that we treat lazy type aliases from external crates as lazy independently of whether the
// local crate enables `lazy_type_alias` or not.

#![cfg_attr(
    locally_lazy,
    feature(lazy_type_alias),
    allow(incomplete_features)
)]

fn main() {
    let _: lazy::Alias<String>; //~ ERROR the trait bound `String: Copy` is not satisfied
}