diff options
Diffstat (limited to 'src/test/compile-fail/use-from-trait.rs')
| -rw-r--r-- | src/test/compile-fail/use-from-trait.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/use-from-trait.rs b/src/test/compile-fail/use-from-trait.rs index c9eea3c5df2..2a97155dd2e 100644 --- a/src/test/compile-fail/use-from-trait.rs +++ b/src/test/compile-fail/use-from-trait.rs @@ -9,9 +9,9 @@ // except according to those terms. use Trait::foo; -//~^ ERROR unresolved import `Trait::foo`. Cannot import from a trait or type implementation +//~^ ERROR `foo` is not directly importable use Foo::new; -//~^ ERROR unresolved import `Foo::new`. Cannot import from a trait or type implementation +//~^ ERROR `new` is not directly importable pub trait Trait { fn foo(); |
