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/16683>
trait T<'a> {
fn a(&'a self) -> &'a bool;
fn b(&self) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: lifetime may not live long enough
--> $DIR/issue-16683.rs:4:9
--> $DIR/elided-self-lifetime-in-trait-fn.rs:5:9
|
LL | trait T<'a> {
| -- lifetime `'a` defined 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/17405>
enum Foo {
Bar(isize)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0574]: expected struct, variant or union type, found enum `Foo`
--> $DIR/issue-17405.rs:7:9
--> $DIR/struct_pattern_on_tuple_enum.rs:8:9
|
LL | Foo { i } => ()
| ^^^ not a struct, variant or union type
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/18389>
//@ check-pass

use std::any::Any;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: trait `Private<<Self as Public>::P, <Self as Public>::R>` is more private than the item `Public`
--> $DIR/issue-18389.rs:9:1
--> $DIR/trait_more_private_than_item.rs:10:1
|
LL | / pub trait Public: Private<
LL | |
Expand All @@ -9,7 +9,7 @@ LL | | > {
| |_^ trait `Public` is reachable at visibility `pub`
|
note: but trait `Private<<Self as Public>::P, <Self as Public>::R>` is only usable at visibility `pub(crate)`
--> $DIR/issue-18389.rs:6:1
--> $DIR/trait_more_private_than_item.rs:7:1
|
LL | trait Private<P, R> {
| ^^^^^^^^^^^^^^^^^^^
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/18119>
const X: u8 = 1;
static Y: u8 = 1;
fn foo() {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
error[E0573]: expected type, found constant `X`
--> $DIR/issue-18119.rs:5:6
--> $DIR/impl-on-non-type.rs:6:6
|
LL | impl X {}
| ^ not a type

error[E0573]: expected type, found static `Y`
--> $DIR/issue-18119.rs:7:6
--> $DIR/impl-on-non-type.rs:8:6
|
LL | impl Y {}
| ^ not a type

error[E0573]: expected type, found function `foo`
--> $DIR/issue-18119.rs:9:6
--> $DIR/impl-on-non-type.rs:10:6
|
LL | impl foo {}
| ^^^ not a type
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/17994>
trait Tr {}
type Huh<T> where T: Tr = isize; //~ ERROR type parameter `T` is never used
fn main() {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0091]: type parameter `T` is never used
--> $DIR/issue-17994.rs:2:10
--> $DIR/unused_type_parameter.rs:3:10
|
LL | type Huh<T> where T: Tr = isize;
| ^ unused type parameter
Expand Down
Loading