]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/invalid-constant-in-args.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / invalid-constant-in-args.stderr
index 5111815e002f11b914a999833de143403199b2b9..9b8a5d1ae4f20f46e5bc82a2423ff834cbea9812 100644 (file)
@@ -1,8 +1,8 @@
 error[E0107]: wrong number of generic arguments: expected 1, found 2
-  --> $DIR/invalid-constant-in-args.rs:2:22
+  --> $DIR/invalid-constant-in-args.rs:4:23
    |
-LL |     let _: Vec<&str, "a"> = Vec::new();
-   |                      ^^^ unexpected const argument
+LL |     let _: Cell<&str, "a"> = Cell::new("");
+   |                       ^^^ unexpected const argument
 
 error: aborting due to previous error