]> git.lizzy.rs Git - rust.git/blob - src/test/ui/ret-none.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[rust.git] / src / test / ui / ret-none.rs
1 // run-pass
2
3 #![allow(non_camel_case_types)]
4 #![allow(dead_code)]
5
6
7 // pretty-expanded FIXME #23616
8
9 enum option<T> { none, some(T), }
10
11 fn f<T>() -> option<T> { return option::none; }
12
13 pub fn main() { f::<isize>(); }