rust/tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.rs

11 lines
239 B
Rust
Raw Normal View History

2021-12-21 16:03:51 -06:00
// aux-build:hidden-child.rs
// FIXME(compiler-errors): This currently suggests the wrong thing.
// UI test exists to track the problem.
extern crate hidden_child;
fn main() {
let x: Option<i32> = 1i32; //~ ERROR mismatched types
}