]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/ok_expect.rs
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / ok_expect.rs
index 4341e8ea70b883455301d3680eebd2690929da01..ff68d38c73bf52a1feae44a01d06e63937f2748b 100644 (file)
@@ -4,7 +4,7 @@
 
 #[derive(Debug)]
 struct MyErrorWithParam<T> {
-    x: T
+    x: T,
 }
 
 fn main() {
@@ -16,7 +16,7 @@ fn main() {
     // the error type implements `Debug`
     let res2: Result<i32, MyError> = Ok(0);
     res2.ok().expect("oh noes!");
-    let res3: Result<u32, MyErrorWithParam<u8>>= Ok(0);
+    let res3: Result<u32, MyErrorWithParam<u8>> = Ok(0);
     res3.ok().expect("whoof");
     let res4: Result<u32, io::Error> = Ok(0);
     res4.ok().expect("argh");