mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
b1f4657fe9
for a couple of issues
14 lines
502 B
Rust
14 lines
502 B
Rust
// Regression test for issue #121612
|
|
|
|
trait Trait {}
|
|
impl Trait for bool {}
|
|
struct MySlice<T: FnOnce(&T, Idx) -> Idx>(bool, T);
|
|
//~^ ERROR cannot find type `Idx` in this scope
|
|
//~| ERROR cannot find type `Idx` in this scope
|
|
type MySliceBool = MySlice<[bool]>;
|
|
const MYSLICE_GOOD: &MySliceBool = &MySlice(true, [false]);
|
|
//~^ ERROR the size for values of type `[bool]` cannot be known at compilation time
|
|
//~| ERROR the size for values of type `[bool]` cannot be known at compilation time
|
|
|
|
fn main() {}
|