]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-variants.rs
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / suggestions / suggest-variants.rs
1 #[derive(Debug)]
2 enum Shape {
3   Square { size: i32 },
4   Circle { radius: i32 },
5 }
6
7 struct S {
8   x: usize,
9 }
10
11 fn main() {
12     println!("My shape is {:?}", Shape::Squareee { size: 5});  //~ ERROR no variant named `Squareee`
13     println!("My shape is {:?}", Shape::Circl { size: 5}); //~ ERROR no variant named `Circl`
14     println!("My shape is {:?}", Shape::Rombus{ size: 5}); //~ ERROR no variant named `Rombus`
15     Shape::Squareee; //~ ERROR no variant
16     Shape::Circl; //~ ERROR no variant
17     Shape::Rombus; //~ ERROR no variant
18 }