Debian Codegraph @

gcc/testsuite/rust/compile/path_as_generic_arg.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 pub enum Result<T, E> {
5 Ok(T),
6 Err(E),
7 }
8
9 pub mod module {
10 pub struct E;
11 }
12
13 pub fn foo() -> Result<(), module::E> {
14 Result::Err(module::E)
15 }