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,6 +1,6 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/31299>
//@ run-pass
// Regression test for #31299. This was generating an overflow error
// because of eager normalization:
// This was generating an overflow error because of eager normalization:
//
// proving `M: Sized` requires
// - proving `PtrBack<Vec<M>>: Sized` requires
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/27997>
//@ run-pass
use std::sync::atomic::{Ordering, AtomicUsize};

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/35815>
//@ run-pass
#![allow(dead_code)]
use std::mem;
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/47486>
fn main() {
() < std::mem::size_of::<_>(); //~ ERROR: mismatched types
[0u8; std::mem::size_of::<_>()]; //~ ERROR: type annotations needed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
error[E0308]: mismatched types
--> $DIR/issue-47486.rs:2:10
--> $DIR/size_of-requires-type-annotation-in-const.rs:3:10
|
LL | () < std::mem::size_of::<_>();
| -- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `usize`
| |
| expected because this is `()`

error[E0282]: type annotations needed
--> $DIR/issue-47486.rs:3:11
--> $DIR/size_of-requires-type-annotation-in-const.rs:4:11
|
LL | [0u8; std::mem::size_of::<_>()];
| ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `size_of`
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/46855>
//@ run-pass
#![allow(dead_code)]
//@ compile-flags: -Zmir-opt-level=1
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/50811>
//@ run-pass
#![feature(test)]
#![allow(invalid_nan_comparisons)]
Expand Down
Loading