mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
18 lines
306 B
Rust
18 lines
306 B
Rust
//@ revisions: current next
|
|
//@[next] compile-flags: -Znext-solver
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
//@ check-pass
|
|
|
|
pub fn main() {}
|
|
|
|
pub trait Iced {
|
|
fn get(&self) -> &impl Sized;
|
|
}
|
|
|
|
/// Impl causes ICE
|
|
impl Iced for () {
|
|
fn get(&self) -> &impl Sized {
|
|
&()
|
|
}
|
|
}
|