-
Notifications
You must be signed in to change notification settings - Fork 13.4k
crashes: more tests #133294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
crashes: more tests #133294
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//@ known-bug: #132765 | ||
|
||
trait LendingIterator { | ||
type Item<'q>; | ||
fn for_each(&self, _f: Box<fn(Self::Item<'_>)>) {} | ||
} | ||
|
||
fn f(_: ()) {} | ||
|
||
fn main() { | ||
LendingIterator::for_each(&(), f); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//@ known-bug: #132766 | ||
|
||
trait Trait {} | ||
impl<'a> Trait for () { | ||
fn pass2<'a>() -> impl Trait2 {} | ||
} | ||
|
||
trait Trait2 {} | ||
impl Trait2 for () {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//@ known-bug: #132882 | ||
|
||
use std::ops::Add; | ||
|
||
pub trait Numoid | ||
where | ||
for<N: Numoid> &'a Self: Add<Self>, | ||
{ | ||
} | ||
|
||
pub fn compute<N: Numoid>(a: N) -> N { | ||
&a + a | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//@ known-bug: #132981 | ||
//@compile-flags: -Clink-dead-code=true --crate-type lib | ||
//@ only-x86_64 | ||
//@ ignore-windows | ||
|
||
#![feature(rust_cold_cc)] | ||
pub extern "rust-cold" fn foo(_: [usize; 3]) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//@ known-bug: #133063 | ||
|
||
fn foo(x: !) { | ||
match x { | ||
(! | !) if false => {} | ||
_ => {} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//@ known-bug: #133066 | ||
jieyouxu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
trait Owner { | ||
const C<const N: u32>: u32; | ||
} | ||
|
||
impl Owner for () {;} | ||
|
||
fn take0<const N: u64>(_: impl Owner<C<N> = { N }>) {} | ||
|
||
fn main() { | ||
take0::<f32, >(()); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//@ known-bug: #133199 | ||
//@ aux-build: aux133199.rs | ||
jieyouxu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
extern crate aux133199; | ||
|
||
use aux133199::FixedBitSet; | ||
|
||
fn main() { | ||
FixedBitSet::<7>::new(); | ||
//~^ ERROR | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//@ known-bug: #133275 | ||
#![feature(const_trait_impl)] | ||
#![feature(associated_type_defaults)] | ||
|
||
#[const_trait] | ||
trait Foo3<T> | ||
where | ||
Self::Baz: Clone, | ||
{ | ||
type Baz = T; | ||
} | ||
|
||
pub fn main() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//@ known-bug: #133275 | ||
#![feature(const_trait_impl)] | ||
#[const_trait] | ||
pub trait Owo<X = <IntEnum as Uwu>::T> {} | ||
|
||
#[const_trait] | ||
trait Foo3<T> | ||
where | ||
Self::Bar: Clone, | ||
Self::Baz: Clone, | ||
{ | ||
type Bar = Vec<Self::Baz>; | ||
type Baz = T; | ||
//~^ ERROR the trait bound `T: Clone` is not satisfied | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#![allow(incomplete_features)] | ||
#![feature(generic_const_exprs)] | ||
|
||
pub struct FixedBitSet<const N: usize>; | ||
|
||
impl<const N: usize> FixedBitSet<N> | ||
where | ||
[u8; N.div_ceil(8)]: Sized, | ||
{ | ||
pub fn new() -> Self { | ||
todo!() | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.