+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
#[derive(Debug)]
struct Foo {
i: isize,
error[E0599]: no method named `clone` found for struct `Foo` in the current scope
- --> $DIR/copy-a-resource.rs:18:16
+ --> $DIR/copy-a-resource.rs:23:16
|
LL | struct Foo {
| ---------- method `clone` not found for this
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
trait Foo {
type X;
fn method(&self) {}
error[E0599]: no method named `clone` found for struct `Bar<NotClone>` in the current scope
- --> $DIR/derive-assoc-type-not-impl.rs:18:30
+ --> $DIR/derive-assoc-type-not-impl.rs:23:30
|
LL | struct Bar<T: Foo> {
| ------------------
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
fn main() {
let x = Some(1);
error[E0004]: non-exhaustive patterns: `None` and `Some(_)` not covered
- --> $DIR/E0004-2.rs:4:11
+ --> $DIR/E0004-2.rs:9:11
|
LL | match x { }
| ^ patterns `None` and `Some(_)` not covered
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
fn main() {
let x = Some(1);
let Some(y) = x; //~ ERROR E0005
error[E0005]: refutable pattern in local binding: `None` not covered
- --> $DIR/E0005.rs:3:9
+ --> $DIR/E0005.rs:8:9
|
LL | let Some(y) = x;
| ^^^^^^^ pattern `None` not covered
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
fn main() {
let xs : Vec<Option<i32>> = vec![Some(1), None];
error[E0005]: refutable pattern in `for` loop binding: `None` not covered
- --> $DIR/E0297.rs:4:9
+ --> $DIR/E0297.rs:9:9
|
LL | for Some(x) in xs {}
| ^^^^^^^ pattern `None` not covered
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
#![feature(never_type)]
fn foo() -> Result<u32, !> {
error[E0005]: refutable pattern in local binding: `Err(_)` not covered
- --> $DIR/feature-gate-exhaustive-patterns.rs:8:9
+ --> $DIR/feature-gate-exhaustive-patterns.rs:13:9
|
LL | let Ok(_x) = foo();
| ^^^^^^ pattern `Err(_)` not covered
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
#![allow(incomplete_features)]
#![feature(generic_associated_types)]
error[E0271]: type mismatch resolving `for<'a> <<std::vec::Vec<T> as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <std::vec::Vec<T> as Iterable>::Item<'a>`
- --> $DIR/iterable.rs:15:5
+ --> $DIR/iterable.rs:20:5
|
LL | impl<T> Iterable for Vec<T> {
| --------------------------- in this `impl` item
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `for<'a> <<[T] as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <[T] as Iterable>::Item<'a>`
- --> $DIR/iterable.rs:27:5
+ --> $DIR/iterable.rs:32:5
|
LL | impl<T> Iterable for [T] {
| ------------------------ in this `impl` item
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `for<'a> <<std::vec::Vec<T> as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <std::vec::Vec<T> as Iterable>::Item<'a>`
- --> $DIR/iterable.rs:19:30
+ --> $DIR/iterable.rs:24:30
|
LL | trait Iterable {
| -------------- required by `Iterable`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `for<'a> <<[T] as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <[T] as Iterable>::Item<'a>`
- --> $DIR/iterable.rs:31:30
+ --> $DIR/iterable.rs:36:30
|
LL | trait Iterable {
| -------------- required by `Iterable`
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
struct C {
x: isize,
}
error[E0599]: no method named `clone` found for struct `C` in the current scope
- --> $DIR/issue-2823.rs:13:16
+ --> $DIR/issue-2823.rs:18:16
|
LL | struct C {
| -------- method `clone` not found for this
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
// aux-build:issue-69725.rs
extern crate issue_69725;
error[E0599]: no method named `clone` found for struct `issue_69725::Struct<A>` in the current scope
- --> $DIR/issue-69725.rs:7:32
+ --> $DIR/issue-69725.rs:12:32
|
LL | let _ = Struct::<A>::new().clone();
| ^^^^^ method not found in `issue_69725::Struct<A>`
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
// ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]
error[E0599]: no method named `clone` found for enum `libc::c_void` in the current scope
- --> $DIR/non-copyable-void.rs:11:23
+ --> $DIR/non-copyable-void.rs:16:23
|
LL | let _z = (*y).clone();
| ^^^^^ method not found in `libc::c_void`
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
// Test that a class with a non-copyable field can't be
// copied
error[E0599]: no method named `clone` found for struct `Foo` in the current scope
- --> $DIR/noncopyable-class.rs:34:16
+ --> $DIR/noncopyable-class.rs:39:16
|
LL | struct Foo {
| ---------- method `clone` not found for this
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
use self::Direction::{North, East, South, West};
#[derive(PartialEq, Eq)]
error[E0004]: non-exhaustive patterns: `(true, false)` not covered
- --> $DIR/match-arm-statics-2.rs:17:11
+ --> $DIR/match-arm-statics-2.rs:22:11
|
LL | match (true, false) {
| ^^^^^^^^^^^^^ pattern `(true, false)` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `Some(Some(West))` not covered
- --> $DIR/match-arm-statics-2.rs:29:11
+ --> $DIR/match-arm-statics-2.rs:34:11
|
LL | match Some(Some(North)) {
| ^^^^^^^^^^^^^^^^^ pattern `Some(Some(West))` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `Foo { bar: Some(North), baz: NewBool(true) }` not covered
- --> $DIR/match-arm-statics-2.rs:48:11
+ --> $DIR/match-arm-statics-2.rs:53:11
|
LL | / struct Foo {
LL | | bar: Option<Direction>,
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
#![feature(never_type)]
#![feature(exhaustive_patterns)]
error[E0004]: non-exhaustive patterns: `Some(Private { misc: true, .. })` not covered
- --> $DIR/match-privately-empty.rs:13:11
+ --> $DIR/match-privately-empty.rs:18:11
|
LL | match private::DATA {
| ^^^^^^^^^^^^^ pattern `Some(Private { misc: true, .. })` not covered
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
#![allow(illegal_floating_point_literal_pattern)]
enum T { A, B }
error[E0004]: non-exhaustive patterns: `A` not covered
- --> $DIR/non-exhaustive-match.rs:7:11
+ --> $DIR/non-exhaustive-match.rs:12:11
|
LL | enum T { A, B }
| ---------------
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `false` not covered
- --> $DIR/non-exhaustive-match.rs:8:11
+ --> $DIR/non-exhaustive-match.rs:13:11
|
LL | match true {
| ^^^^ pattern `false` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `Some(_)` not covered
- --> $DIR/non-exhaustive-match.rs:11:11
+ --> $DIR/non-exhaustive-match.rs:16:11
|
LL | match Some(10) {
| ^^^^^^^^ pattern `Some(_)` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `(_, _, std::i32::MIN..=3i32)` and `(_, _, 5i32..=std::i32::MAX)` not covered
- --> $DIR/non-exhaustive-match.rs:14:11
+ --> $DIR/non-exhaustive-match.rs:19:11
|
LL | match (2, 3, 4) {
| ^^^^^^^^^ patterns `(_, _, std::i32::MIN..=3i32)` and `(_, _, 5i32..=std::i32::MAX)` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `(A, A)` not covered
- --> $DIR/non-exhaustive-match.rs:18:11
+ --> $DIR/non-exhaustive-match.rs:23:11
|
LL | match (T::A, T::A) {
| ^^^^^^^^^^^^ pattern `(A, A)` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `B` not covered
- --> $DIR/non-exhaustive-match.rs:22:11
+ --> $DIR/non-exhaustive-match.rs:27:11
|
LL | enum T { A, B }
| ---------------
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `[]` not covered
- --> $DIR/non-exhaustive-match.rs:33:11
+ --> $DIR/non-exhaustive-match.rs:38:11
|
LL | match *vec {
| ^^^^ pattern `[]` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `[_, _, _, _, ..]` not covered
- --> $DIR/non-exhaustive-match.rs:46:11
+ --> $DIR/non-exhaustive-match.rs:51:11
|
LL | match *vec {
| ^^^^ pattern `[_, _, _, _, ..]` not covered
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
struct R<'a> {
r: &'a R<'a>,
}
error[E0005]: refutable pattern in local binding: `Err(_)` not covered
- --> $DIR/recursive-types-are-not-uninhabited.rs:6:9
+ --> $DIR/recursive-types-are-not-uninhabited.rs:11:9
|
LL | let Ok(x) = res;
| ^^^^^ pattern `Err(_)` not covered
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
use std::mem::zeroed;
enum Void {}
error[E0004]: non-exhaustive patterns: `Err(_)` not covered
- --> $DIR/uninhabited-matches-feature-gated.rs:6:19
+ --> $DIR/uninhabited-matches-feature-gated.rs:11:19
|
LL | let _ = match x {
| ^ pattern `Err(_)` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: type `&Void` is non-empty
- --> $DIR/uninhabited-matches-feature-gated.rs:15:19
+ --> $DIR/uninhabited-matches-feature-gated.rs:20:19
|
LL | enum Void {}
| ------------ `Void` defined here
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: type `(Void,)` is non-empty
- --> $DIR/uninhabited-matches-feature-gated.rs:18:19
+ --> $DIR/uninhabited-matches-feature-gated.rs:23:19
|
LL | let _ = match x {};
| ^
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: type `[Void; 1]` is non-empty
- --> $DIR/uninhabited-matches-feature-gated.rs:21:19
+ --> $DIR/uninhabited-matches-feature-gated.rs:26:19
|
LL | let _ = match x {};
| ^
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
- --> $DIR/uninhabited-matches-feature-gated.rs:24:19
+ --> $DIR/uninhabited-matches-feature-gated.rs:29:19
|
LL | let _ = match x {
| ^ pattern `&[_, ..]` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `Err(_)` not covered
- --> $DIR/uninhabited-matches-feature-gated.rs:32:19
+ --> $DIR/uninhabited-matches-feature-gated.rs:37:19
|
LL | let _ = match x {
| ^ pattern `Err(_)` not covered
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0005]: refutable pattern in local binding: `Err(_)` not covered
- --> $DIR/uninhabited-matches-feature-gated.rs:37:9
+ --> $DIR/uninhabited-matches-feature-gated.rs:42:9
|
LL | let Ok(x) = x;
| ^^^^^ pattern `Err(_)` not covered
+// FIXME: missing sysroot spans (#53081)
+// ignore-i586-unknown-linux-gnu
+// ignore-i586-unknown-linux-musl
+// ignore-i686-unknown-linux-musl
+
#![feature(untagged_unions)]
use std::mem::ManuallyDrop;
error[E0277]: the trait bound `U1: std::marker::Copy` is not satisfied
- --> $DIR/union-derive-clone.rs:5:10
+ --> $DIR/union-derive-clone.rs:10:10
|
LL | #[derive(Clone)]
| ^^^^^ the trait `std::marker::Copy` is not implemented for `U1`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `clone` found for union `U5<CloneNoCopy>` in the current scope
- --> $DIR/union-derive-clone.rs:37:15
+ --> $DIR/union-derive-clone.rs:42:15
|
LL | union U5<T> {
| -----------