]>
git.proxmox.com Git - rustc.git/blob - tests/ui/rust-2018/trait-import-suggestions.rs
2 // aux-build:trait-import-suggestions.rs
3 // compile-flags:--extern trait-import-suggestions
7 pub(crate) trait Foobar
{
11 impl Foobar
for u32 { }
14 pub(crate) trait Bar
{
22 x
.foobar(); //~ ERROR no method named `foobar`
28 x
.bar(); //~ ERROR no method named `bar`
29 x
.baz(); //~ ERROR no method named `baz`
30 let y
= u32::from_str("33"); //~ ERROR no function or associated item named `from_str`