Skip to content
Open
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/16922>.
//@ run-pass

use std::any::Any;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Auxiliary crate for <https://github.com/rust-lang/rust/issues/17662>.
#![crate_type = "lib"]

pub trait Foo<'a, T> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/17662>.
//@ run-pass
//@ aux-build:issue-17662.rs
//@ aux-build:dyn-trait-lifetime-infer-metadata.rs


extern crate issue_17662 as i;
extern crate dyn_trait_lifetime_infer_metadata as i;

use std::marker;

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/17337>.
#![feature(staged_api)]
#![deny(deprecated)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error: use of deprecated method `Foo::foo`: text
--> $DIR/issue-17337.rs:16:6
--> $DIR/deprecated-unstable-method-in-staged-api.rs:17:6
|
LL | .foo();
| ^^^
|
note: the lint level is defined here
--> $DIR/issue-17337.rs:2:9
--> $DIR/deprecated-unstable-method-in-staged-api.rs:3:9
|
LL | #![deny(deprecated)]
| ^^^^^^^^^^
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/17216>.
//@ run-pass
#![allow(unused_variables)]
struct Leak<'a> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/17551>.
use std::marker;

struct B<T>(marker::PhantomData<T>);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0282]: type annotations needed for `B<_>`
--> $DIR/issue-17551.rs:6:9
--> $DIR/unconstrained-type-in-closure.rs:8:9
|
LL | let foo = B(marker::PhantomData);
| ^^^ ------------------- type must be known at this point
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/17121>.
//@ check-pass
#![allow(dead_code)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/17800>.
enum MyOption<T> {
MySome(T),
MyNone,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0769]: tuple variant `MyOption::MySome` written as struct variant
--> $DIR/issue-17800.rs:8:9
--> $DIR/tuple-variant-as-struct-variant.rs:10:9
|
LL | MyOption::MySome { x: 42 } => (),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
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/17954>.
#![feature(thread_local)]

#[thread_local]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0712]: thread-local variable borrowed past end of function
--> $DIR/issue-17954.rs:7:13
--> $DIR/thread-local-borrow-past-function-end.rs:8:13
|
LL | let a = &FOO;
| ^^^^ thread-local variables cannot be borrowed beyond the end of the function
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/17904>.
//@ check-pass
#![allow(dead_code)]
// Test that we can parse where clauses on various forms of tuple
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/17904>.
// Test that we can parse a unit struct with a where clause, even if
// it leads to an error later on since `T` is unused.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0392]: type parameter `T` is never used
--> $DIR/issue-17904-2.rs:4:12
--> $DIR/where-clause-on-unit-struct.rs:5:12
|
LL | struct Foo<T> where T: Copy;
| ^ unused type parameter
Expand Down
Loading