()
| 1856 | a: Option<i32> = Some(40) |
| 1857 | b: Option<i64> = Some(2) |
| 1858 | total: i32 = 0 |
| 1859 | match a { |
| 1860 | Some(v) -> { |
| 1861 | total = total + v |
| 1862 | } |
| 1863 | None -> { |
| 1864 | total = total + 0 |
| 1865 | } |
| 1866 | } |
| 1867 | match b { |
| 1868 | Some(w) -> { |
| 1869 | total = total + w as i32 |
| 1870 | } |
| 1871 | None -> { |
| 1872 | total = total + 0 |
| 1873 | } |
| 1874 | } |
| 1875 | return total |
| 1876 | } |
| 1877 | "#, |
| 1878 | 42, |
| 1879 | ); |
| 1880 | } |
| 1881 | |
| 1882 | #[test] |
| 1883 | fn user_generic_enum_specializes() { |
nothing calls this directly
no test coverage detected