]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/deref-suggestion.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / deref-suggestion.stderr
index 9811c5969dad69ebc7d00ab10c10603cf02f2249..99e2b38c3f0d8f4b844c31f61f6c6d6eb2330280 100644 (file)
@@ -1,5 +1,5 @@
 error[E0308]: mismatched types
-  --> $DIR/deref-suggestion.rs:18:9
+  --> $DIR/deref-suggestion.rs:8:9
    |
 LL |     foo(s);
    |         ^
@@ -11,7 +11,7 @@ LL |     foo(s);
               found type `&std::string::String`
 
 error[E0308]: mismatched types
-  --> $DIR/deref-suggestion.rs:24:10
+  --> $DIR/deref-suggestion.rs:14:10
    |
 LL |     foo3(u);
    |          ^
@@ -23,7 +23,7 @@ LL |     foo3(u);
               found type `&u32`
 
 error[E0308]: mismatched types
-  --> $DIR/deref-suggestion.rs:32:9
+  --> $DIR/deref-suggestion.rs:22:9
    |
 LL |     foo(&"aaa".to_owned());
    |         ^^^^^^^^^^^^^^^^^
@@ -35,7 +35,7 @@ LL |     foo(&"aaa".to_owned());
               found type `&std::string::String`
 
 error[E0308]: mismatched types
-  --> $DIR/deref-suggestion.rs:34:9
+  --> $DIR/deref-suggestion.rs:24:9
    |
 LL |     foo(&mut "aaa".to_owned());
    |         ^^^^^^^^^^^^^^^^^^^^^
@@ -47,7 +47,7 @@ LL |     foo(&mut "aaa".to_owned());
               found type `&mut std::string::String`
 
 error[E0308]: mismatched types
-  --> $DIR/deref-suggestion.rs:12:20
+  --> $DIR/deref-suggestion.rs:2:20
    |
 LL |     ($x:expr) => { &$x } //~ ERROR mismatched types
    |                    ^^^ expected u32, found &{integer}
@@ -59,7 +59,7 @@ LL |     foo3(borrow!(0));
               found type `&{integer}`
 
 error[E0308]: mismatched types
-  --> $DIR/deref-suggestion.rs:38:5
+  --> $DIR/deref-suggestion.rs:28:5
    |
 LL |     assert_eq!(3i32, &3i32);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found &i32