Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
suggestions
/
suggest-std-when-using-type.rs
blob: 9ca68a635da96ad85247aaa0f36f10f260b6aab7 [
file
] [
log
] [
blame
]
fn
main
()
{
let
pi
=
f32
::
consts
::
PI
;
//~ ERROR ambiguous associated type
let
bytes
=
"hello world"
.
as_bytes
();
let
string
=
unsafe
{
str
::
from_utf8
(
bytes
)
//~ ERROR no function or associated item named `from_utf8` found
};
}