@@ -9,16 +9,16 @@ use once_cell::sync::Lazy;
9
9
fn main() {}
10
10
11
11
static LAZY_FOO: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| "foo".to_uppercase());
12
- //~^ ERROR: this type has been superceded by `LazyLock` in the standard library
12
+ //~^ ERROR: this type has been superseded by `LazyLock` in the standard library
13
13
static LAZY_BAR: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| {
14
- //~^ ERROR: this type has been superceded by `LazyLock` in the standard library
14
+ //~^ ERROR: this type has been superseded by `LazyLock` in the standard library
15
15
let x = "bar";
16
16
x.to_uppercase()
17
17
});
18
18
static LAZY_BAZ: std::sync::LazyLock<String> = { std::sync::LazyLock::new(|| "baz".to_uppercase()) };
19
- //~^ ERROR: this type has been superceded by `LazyLock` in the standard library
19
+ //~^ ERROR: this type has been superseded by `LazyLock` in the standard library
20
20
static LAZY_QUX: std::sync::LazyLock<String> = {
21
- //~^ ERROR: this type has been superceded by `LazyLock` in the standard library
21
+ //~^ ERROR: this type has been superseded by `LazyLock` in the standard library
22
22
if "qux".len() == 3 {
23
23
std::sync::LazyLock::new(|| "qux".to_uppercase())
24
24
} else if "qux".is_ascii() {
@@ -39,11 +39,11 @@ mod once_cell_lazy_with_fns {
39
39
use once_cell::sync::Lazy;
40
40
41
41
static LAZY_FOO: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| "foo".to_uppercase());
42
- //~^ ERROR: this type has been superceded by `LazyLock` in the standard library
42
+ //~^ ERROR: this type has been superseded by `LazyLock` in the standard library
43
43
static LAZY_BAR: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| "bar".to_uppercase());
44
- //~^ ERROR: this type has been superceded by `LazyLock` in the standard library
44
+ //~^ ERROR: this type has been superseded by `LazyLock` in the standard library
45
45
static mut LAZY_BAZ: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| "baz".to_uppercase());
46
- //~^ ERROR: this type has been superceded by `LazyLock` in the standard library
46
+ //~^ ERROR: this type has been superseded by `LazyLock` in the standard library
47
47
48
48
fn calling_replaceable_fns() {
49
49
let _ = std::sync::LazyLock::force(&LAZY_FOO);
0 commit comments