]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/generic-tag.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / generics / generic-tag.rs
1 // run-pass
2 #![allow(unused_assignments)]
3 #![allow(non_camel_case_types)]
4
5 // pretty-expanded FIXME #23616
6
7 #![allow(unused_variables)]
8
9 enum option<T> { some(#[allow(unused_tuple_struct_fields)] Box<T>), none, }
10
11 pub fn main() {
12     let mut a: option<isize> = option::some::<isize>(Box::new(10));
13     a = option::none::<isize>;
14 }