@@ -9,16 +9,16 @@ use once_cell::sync::Lazy;
99fn main() {}
1010
1111static 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
1313static 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
1515 let x = "bar";
1616 x.to_uppercase()
1717});
1818static 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
2020static 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
2222 if "qux".len() == 3 {
2323 std::sync::LazyLock::new(|| "qux".to_uppercase())
2424 } else if "qux".is_ascii() {
@@ -39,11 +39,11 @@ mod once_cell_lazy_with_fns {
3939 use once_cell::sync::Lazy;
4040
4141 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
4343 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
4545 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
4747
4848 fn calling_replaceable_fns() {
4949 let _ = std::sync::LazyLock::force(&LAZY_FOO);
0 commit comments