1
Fork 0

fix cycle error for "use constructor" suggestion

This commit is contained in:
Lukas Markeffsky 2024-01-05 21:55:09 +01:00
parent 274674819c
commit 339fa311ad
3 changed files with 13 additions and 16 deletions

View file

@ -1,10 +1,10 @@
// aux-build:suggest-constructor-cycle-error.rs
//~^ cycle detected when getting the resolver for lowering [E0391]
// Regression test for https://github.com/rust-lang/rust/issues/119625
extern crate suggest_constructor_cycle_error as a;
const CONST_NAME: a::Uuid = a::Uuid(());
//~^ ERROR: cannot initialize a tuple struct which contains private fields [E0423]
fn main() {}