]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/substs-ppaux.normal.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / substs-ppaux.normal.stderr
index 9f87329fb34ed262b18064136fb791ddf0c79b40..567b4d9f4403edeeb3323a4ac1b3c433b6143a01 100644 (file)
@@ -1,5 +1,5 @@
 error[E0308]: mismatched types
-  --> $DIR/substs-ppaux.rs:25:17
+  --> $DIR/substs-ppaux.rs:16:17
    |
 LL |     let x: () = <i8 as Foo<'static, 'static,  u8>>::bar::<'static, char>;
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found fn item
@@ -8,7 +8,7 @@ LL |     let x: () = <i8 as Foo<'static, 'static,  u8>>::bar::<'static, char>;
               found type `fn() {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>}`
 
 error[E0308]: mismatched types
-  --> $DIR/substs-ppaux.rs:34:17
+  --> $DIR/substs-ppaux.rs:25:17
    |
 LL |     let x: () = <i8 as Foo<'static, 'static,  u32>>::bar::<'static, char>;
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found fn item
@@ -17,7 +17,7 @@ LL |     let x: () = <i8 as Foo<'static, 'static,  u32>>::bar::<'static, char>;
               found type `fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>}`
 
 error[E0308]: mismatched types
-  --> $DIR/substs-ppaux.rs:42:17
+  --> $DIR/substs-ppaux.rs:33:17
    |
 LL |     let x: () = <i8 as Foo<'static, 'static,  u8>>::baz;
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found fn item
@@ -26,7 +26,7 @@ LL |     let x: () = <i8 as Foo<'static, 'static,  u8>>::baz;
               found type `fn() {<i8 as Foo<'static, 'static, u8>>::baz}`
 
 error[E0308]: mismatched types
-  --> $DIR/substs-ppaux.rs:50:17
+  --> $DIR/substs-ppaux.rs:41:17
    |
 LL |     let x: () = foo::<'static>;
    |                 ^^^^^^^^^^^^^^ expected (), found fn item
@@ -35,16 +35,16 @@ LL |     let x: () = foo::<'static>;
               found type `fn() {foo::<'static>}`
 
 error[E0277]: the size for values of type `str` cannot be known at compilation time
-  --> $DIR/substs-ppaux.rs:58:5
+  --> $DIR/substs-ppaux.rs:49:5
    |
 LL |     <str as Foo<u8>>::bar;
    |     ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `str`
-   = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
+   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
    = note: required because of the requirements on the impl of `Foo<'_, '_, u8>` for `str`
 note: required by `Foo::bar`
-  --> $DIR/substs-ppaux.rs:16:5
+  --> $DIR/substs-ppaux.rs:7:5
    |
 LL |     fn bar<'a, T>() where T: 'a {}
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^