diff --git a/crates/lang/tests/ui/contract/fail/constructor-self-receiver-03.stderr b/crates/lang/tests/ui/contract/fail/constructor-self-receiver-03.stderr index 0f050dff38c..d48721fb3db 100644 --- a/crates/lang/tests/ui/contract/fail/constructor-self-receiver-03.stderr +++ b/crates/lang/tests/ui/contract/fail/constructor-self-receiver-03.stderr @@ -1,3 +1,9 @@ +error[E0637]: `&` without an explicit lifetime name cannot be used here + --> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:34 + | +10 | pub fn constructor(this: &Self) -> Self { + | ^ explicit lifetime name needed here + error[E0411]: cannot find type `Self` in this scope --> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:35 | @@ -16,15 +22,16 @@ error[E0411]: cannot find type `Self` in this scope 10 | pub fn constructor(this: &Self) -> Self { | ^^^^ `Self` is only available in impls, traits, and type definitions -error[E0106]: missing lifetime specifier - --> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:34 - | -10 | pub fn constructor(this: &Self) -> Self { - | ^ expected named lifetime parameter - | -help: consider introducing a named lifetime parameter +error[E0277]: the trait bound `&'static Contract: WrapperTypeDecode` is not satisfied + --> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:9 | -10 ~ pub fn constructor(this: &'a Self) -> Self { -11 | Self {} -12 ~ }<'a> +10 | / pub fn constructor(this: &Self) -> Self { +11 | | Self {} +12 | | } + | |_________^ the trait `WrapperTypeDecode` is not implemented for `&'static Contract` | + = help: the following other types implement trait `WrapperTypeDecode`: + Arc + Box + Rc + = note: required because of the requirements on the impl of `parity_scale_codec::Decode` for `&'static Contract`