Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
resolve
/
no-std-3.rs
blob: 0dd0a6f7e35122cdb4c71ce70a4846b498e52998 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
no_std
]
extern
crate std
;
mod
foo
{
pub
fn
test
()
->
Option
<
i32
>
{
Some
(
2
)
}
}
fn
main
()
{
let
a
=
core
::
option
::
Option
::
Some
(
"foo"
);
a
.
unwrap
();
foo
::
test
().
unwrap
();
}