Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
17
tests/ui/recursion/issue-26548-recursion-via-normalize.rs
Normal file
17
tests/ui/recursion/issue-26548-recursion-via-normalize.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
//~ ERROR cycle detected when computing layout of `core::option::Option<S>`
|
||||
//~| NOTE ...which requires computing layout of `S`...
|
||||
//~| NOTE ...which requires computing layout of `core::option::Option<<S as Mirror>::It>`...
|
||||
//~| NOTE ...which again requires computing layout of `core::option::Option<S>`, completing the cycle
|
||||
//~| NOTE cycle used when computing layout of `core::option::Option<<S as Mirror>::It>`
|
||||
|
||||
trait Mirror {
|
||||
type It: ?Sized;
|
||||
}
|
||||
impl<T: ?Sized> Mirror for T {
|
||||
type It = Self;
|
||||
}
|
||||
struct S(Option<<S as Mirror>::It>);
|
||||
|
||||
fn main() {
|
||||
let _s = S(None);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue