about summary refs log tree commit diff
path: root/src/test/ui/impl-trait
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-02-25 02:01:39 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-02-26 20:24:42 +0300
commit7ba5fd168a20cbead2afb800e638159e11bb79da (patch)
tree285649d5d4c3e8366d319df727c7b858db69db50 /src/test/ui/impl-trait
parent99b1054d9f4442fd5cc535d5ad90f3542791a547 (diff)
downloadrust-7ba5fd168a20cbead2afb800e638159e11bb79da.tar.gz
rust-7ba5fd168a20cbead2afb800e638159e11bb79da.zip
Update UI tests
Diffstat (limited to 'src/test/ui/impl-trait')
-rw-r--r--src/test/ui/impl-trait/no-method-suggested-traits.stderr24
-rw-r--r--src/test/ui/impl-trait/universal_wrong_bounds.stderr4
2 files changed, 14 insertions, 14 deletions
diff --git a/src/test/ui/impl-trait/no-method-suggested-traits.stderr b/src/test/ui/impl-trait/no-method-suggested-traits.stderr
index d721c2ef686..d5250b42cc2 100644
--- a/src/test/ui/impl-trait/no-method-suggested-traits.stderr
+++ b/src/test/ui/impl-trait/no-method-suggested-traits.stderr
@@ -7,13 +7,13 @@ LL |     1u32.method();
    = help: items from traits can only be used if the trait is in scope
 help: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
    |
-14 | use foo::Bar;
+LL | use foo::Bar;
    |
-14 | use no_method_suggested_traits::foo::PubPub;
+LL | use no_method_suggested_traits::foo::PubPub;
    |
-14 | use no_method_suggested_traits::qux::PrivPub;
+LL | use no_method_suggested_traits::qux::PrivPub;
    |
-14 | use no_method_suggested_traits::Reexported;
+LL | use no_method_suggested_traits::Reexported;
    |
 
 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&u32>>` in the current scope
@@ -25,13 +25,13 @@ LL |     std::rc::Rc::new(&mut Box::new(&1u32)).method();
    = help: items from traits can only be used if the trait is in scope
 help: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
    |
-14 | use foo::Bar;
+LL | use foo::Bar;
    |
-14 | use no_method_suggested_traits::foo::PubPub;
+LL | use no_method_suggested_traits::foo::PubPub;
    |
-14 | use no_method_suggested_traits::qux::PrivPub;
+LL | use no_method_suggested_traits::qux::PrivPub;
    |
-14 | use no_method_suggested_traits::Reexported;
+LL | use no_method_suggested_traits::Reexported;
    |
 
 error[E0599]: no method named `method` found for type `char` in the current scope
@@ -43,7 +43,7 @@ LL |     'a'.method();
    = help: items from traits can only be used if the trait is in scope
 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
    |
-14 | use foo::Bar;
+LL | use foo::Bar;
    |
 
 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&char>>` in the current scope
@@ -55,7 +55,7 @@ LL |     std::rc::Rc::new(&mut Box::new(&'a')).method();
    = help: items from traits can only be used if the trait is in scope
 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
    |
-14 | use foo::Bar;
+LL | use foo::Bar;
    |
 
 error[E0599]: no method named `method` found for type `i32` in the current scope
@@ -67,7 +67,7 @@ LL |     1i32.method();
    = help: items from traits can only be used if the trait is in scope
 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
    |
-14 | use no_method_suggested_traits::foo::PubPub;
+LL | use no_method_suggested_traits::foo::PubPub;
    |
 
 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&i32>>` in the current scope
@@ -79,7 +79,7 @@ LL |     std::rc::Rc::new(&mut Box::new(&1i32)).method();
    = help: items from traits can only be used if the trait is in scope
 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
    |
-14 | use no_method_suggested_traits::foo::PubPub;
+LL | use no_method_suggested_traits::foo::PubPub;
    |
 
 error[E0599]: no method named `method` found for type `Foo` in the current scope
diff --git a/src/test/ui/impl-trait/universal_wrong_bounds.stderr b/src/test/ui/impl-trait/universal_wrong_bounds.stderr
index 65a88f57596..6cf0baa5fcc 100644
--- a/src/test/ui/impl-trait/universal_wrong_bounds.stderr
+++ b/src/test/ui/impl-trait/universal_wrong_bounds.stderr
@@ -11,7 +11,7 @@ LL | fn wants_debug(g: impl Debug) { } //~ ERROR cannot find
    |                        ^^^^^ not found in this scope
 help: possible candidate is found in another module, you can import it into scope
    |
-13 | use std::fmt::Debug;
+LL | use std::fmt::Debug;
    |
 
 error[E0405]: cannot find trait `Debug` in this scope
@@ -21,7 +21,7 @@ LL | fn wants_display(g: impl Debug) { } //~ ERROR cannot find
    |                          ^^^^^ not found in this scope
 help: possible candidate is found in another module, you can import it into scope
    |
-13 | use std::fmt::Debug;
+LL | use std::fmt::Debug;
    |
 
 error: cannot continue compilation due to previous error