rust/tests/ui/trait-bounds/enum-unit-variant-trait-bound.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
185 B
Rust
Raw Normal View History

// 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
}