]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/rc_buffer.stderr
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / rc_buffer.stderr
index 641a13a22513455d389da19fc7b6839eedc66828..9ed028e3df41bf78e3f7c4d7f75cfe098ffa4b19 100644 (file)
@@ -1,28 +1,52 @@
 error: usage of `Rc<T>` when T is a buffer type
-  --> $DIR/rc_buffer.rs:7:8
+  --> $DIR/rc_buffer.rs:12:11
    |
-LL |     a: Rc<String>,
-   |        ^^^^^^^^^^ help: try: `Rc<str>`
+LL |     bad1: Rc<String>,
+   |           ^^^^^^^^^^ help: try: `Rc<str>`
    |
    = note: `-D clippy::rc-buffer` implied by `-D warnings`
 
 error: usage of `Rc<T>` when T is a buffer type
-  --> $DIR/rc_buffer.rs:8:8
+  --> $DIR/rc_buffer.rs:13:11
    |
-LL |     b: Rc<PathBuf>,
-   |        ^^^^^^^^^^^ help: try: `Rc<std::path::Path>`
+LL |     bad2: Rc<PathBuf>,
+   |           ^^^^^^^^^^^ help: try: `Rc<std::path::Path>`
 
 error: usage of `Rc<T>` when T is a buffer type
-  --> $DIR/rc_buffer.rs:9:8
+  --> $DIR/rc_buffer.rs:14:11
    |
-LL |     c: Rc<Vec<u8>>,
-   |        ^^^^^^^^^^^ help: try: `Rc<[u8]>`
+LL |     bad3: Rc<Vec<u8>>,
+   |           ^^^^^^^^^^^ help: try: `Rc<[u8]>`
 
 error: usage of `Rc<T>` when T is a buffer type
-  --> $DIR/rc_buffer.rs:10:8
+  --> $DIR/rc_buffer.rs:15:11
    |
-LL |     d: Rc<OsString>,
-   |        ^^^^^^^^^^^^ help: try: `Rc<std::ffi::OsStr>`
+LL |     bad4: Rc<OsString>,
+   |           ^^^^^^^^^^^^ help: try: `Rc<std::ffi::OsStr>`
 
-error: aborting due to 4 previous errors
+error: usage of `Rc<T>` when T is a buffer type
+  --> $DIR/rc_buffer.rs:21:17
+   |
+LL | fn func_bad1(_: Rc<String>) {}
+   |                 ^^^^^^^^^^ help: try: `Rc<str>`
+
+error: usage of `Rc<T>` when T is a buffer type
+  --> $DIR/rc_buffer.rs:22:17
+   |
+LL | fn func_bad2(_: Rc<PathBuf>) {}
+   |                 ^^^^^^^^^^^ help: try: `Rc<std::path::Path>`
+
+error: usage of `Rc<T>` when T is a buffer type
+  --> $DIR/rc_buffer.rs:23:17
+   |
+LL | fn func_bad3(_: Rc<Vec<u8>>) {}
+   |                 ^^^^^^^^^^^ help: try: `Rc<[u8]>`
+
+error: usage of `Rc<T>` when T is a buffer type
+  --> $DIR/rc_buffer.rs:24:17
+   |
+LL | fn func_bad4(_: Rc<OsString>) {}
+   |                 ^^^^^^^^^^^^ help: try: `Rc<std::ffi::OsStr>`
+
+error: aborting due to 8 previous errors