Add some regression tests
This commit is contained in:
parent
2e8a54af60
commit
94ed9455e8
14
src/test/ui/issues/issue-75763.rs
Normal file
14
src/test/ui/issues/issue-75763.rs
Normal file
@ -0,0 +1,14 @@
|
||||
// build-pass
|
||||
|
||||
#![allow(incomplete_features)]
|
||||
#![feature(const_generics)]
|
||||
|
||||
struct Bug<const S: &'static str>;
|
||||
|
||||
fn main() {
|
||||
let b: Bug::<{
|
||||
unsafe {
|
||||
std::mem::transmute::<&[u8], &str>(&[0xC0, 0xC1, 0xF5])
|
||||
}
|
||||
}>;
|
||||
}
|
19
src/test/ui/issues/issue-76179.rs
Normal file
19
src/test/ui/issues/issue-76179.rs
Normal file
@ -0,0 +1,19 @@
|
||||
// check-pass
|
||||
|
||||
#![feature(associated_type_defaults)]
|
||||
|
||||
use std::io::Read;
|
||||
|
||||
trait View {
|
||||
type Deserializers: Deserializer<Item = Self::RequestParams>;
|
||||
type RequestParams = DefaultRequestParams;
|
||||
}
|
||||
|
||||
struct DefaultRequestParams;
|
||||
|
||||
trait Deserializer {
|
||||
type Item;
|
||||
fn deserialize(r: impl Read) -> Self::Item;
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user