Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/43923>
//@ run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/33241>
//@ check-pass

use std::fmt;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/35988>
enum E {
V([Box<E>]),
//~^ ERROR the size for values of type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: the size for values of type `[Box<E>]` cannot be known at compilation time
--> $DIR/issue-35988.rs:2:7
--> $DIR/unsized-field-in-enum-variant.rs:3:7
|
LL | V([Box<E>]),
| ^^^^^^^^ doesn't have a size known at compile-time
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/44023>
pub fn main () {}

fn საჭმელად_გემრიელი_სადილი ( ) -> isize { //~ ERROR mismatched types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-44023.rs:3:36
--> $DIR/multibyte-char-in-diagnostic-source-line.rs:4:36
|
LL | fn საჭმელად_გემრიელი_სადილი ( ) -> isize {
| ------------------------ ^^^^^ expected `isize`, found `()`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//! Auxiliary crate for regression test of <https://github.com/rust-lang/rust/issues/52489>
#![crate_type = "lib"]
#![unstable(feature = "unstable_crate_import_gated_in_2018_edition", issue = "none")]
#![feature(staged_api)]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/52489>
//@ edition:2018
//@ aux-build:unstable-crate-import-gated-in-2018-edition.rs
//@ compile-flags: --extern unstable_crate_import_gated_in_2018_edition

use unstable_crate_import_gated_in_2018_edition;
//~^ ERROR use of unstable library feature `unstable_crate_import_gated_in_2018_edition`

fn main() {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
error[E0658]: use of unstable library feature `unstable_crate_import_gated_in_2018_edition`
--> $DIR/unstable-crate-import-gated-in-2018-edition.rs:6:5
|
LL | use unstable_crate_import_gated_in_2018_edition;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add `#![feature(unstable_crate_import_gated_in_2018_edition)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0658`.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/3556>
//@ run-pass
#![allow(dead_code)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/43431>
#![feature(fn_traits)]

trait CallSingle<A, B> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0229]: associated item constraints are not allowed here
--> $DIR/issue-43431.rs:9:27
--> $DIR/fn-trait-ufcs-call-in-impl.rs:10:27
|
LL | <Self as Fn(A) -> B>::call(self, (a,))
| ^ associated item constraint not allowed here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/45510>
// Test overloaded resolution of fn_traits.
//@ run-pass

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/39687>
#![feature(fn_traits)]

fn main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0229]: associated item constraints are not allowed here
--> $DIR/issue-39687.rs:4:14
--> $DIR/parenthesized-fn-trait-in-qualified-path.rs:5:14
|
LL | <fn() as Fn()>::call;
| ^^^^ associated item constraint not allowed here
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/issues/auxiliary/issue-52489.rs

This file was deleted.

8 changes: 0 additions & 8 deletions tests/ui/issues/issue-52489.rs

This file was deleted.

12 changes: 0 additions & 12 deletions tests/ui/issues/issue-52489.stderr

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/37733>
//@ build-pass
#![allow(dead_code)]
type A = for<> fn();
Expand Down
Loading