summaryrefslogtreecommitdiffstats
path: root/tests/ui/trait-bounds/enum-unit-variant-trait-bound.rs
blob: 91525bc90c4bb03cd830e98ad336a9e6e458cead (plain)
1
2
3
4
5
6
// Regression test for one part of issue #105306.

fn main() {
    let _ = Option::<[u8]>::None;
    //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time
}