repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gccrs: Handle `async` functions in traits
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
path_as_generic_arg.rs
blob
21baf8000e714826f398460315a5d640f0439406
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
}