From 44f29fbdbc5edf067c272851d38e32a747613597 Mon Sep 17 00:00:00 2001 From: Alisdair Owens Date: Sat, 18 Jul 2015 20:46:47 +0100 Subject: [PATCH] oops, forgot to fix method name --- src/librustc_resolve/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index 44ef67f66a0..30a74b35af5 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -100,10 +100,10 @@ trying to import a function from a trait. An example of this error: ``` mod foo { pub trait MyTrait { - fn doSomething(); + fn do_something(); } } -use foo::MyTrait::doSomething; +use foo::MyTrait::do_something; ``` In general, it's not legal to directly import methods belonging to a