{"$message_type":"diagnostic","message":"no method named `ops` found for reference `&Sealed` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n    fn chocolate(&self) { // We implement the `chocolate` method here.\n        println!(\"Hmmm! I love chocolate!\");\n    }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"crates/editor/src/widget/test_fixtures.rs","byte_start":12184,"byte_end":12187,"line_start":370,"line_end":370,"column_start":34,"column_end":37,"is_primary":true,"text":[{"text":"            .map(|commit| commit.ops().to_vec())","highlight_start":34,"highlight_end":37}],"label":"method not found in `&Sealed`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"crates/editor/src/widget/test_fixtures.rs","byte_start":12184,"byte_end":12184,"line_start":370,"line_end":370,"column_start":34,"column_end":34,"is_primary":true,"text":[{"text":"            .map(|commit| commit.ops().to_vec())","highlight_start":34,"highlight_end":34}],"label":null,"suggested_replacement":"commit.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `ops` found for reference `&Sealed` in the current scope\u001b[0m\n   \u001b[1m\u001b[94m--> \u001b[0mcrates/editor/src/widget/test_fixtures.rs:370:34\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m370\u001b[0m \u001b[1m\u001b[94m|\u001b[0m             .map(|commit| commit.ops().to_vec())\n    \u001b[1m\u001b[94m|\u001b[0m                                  \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&Sealed`\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: one of the expressions' fields has a method of the same name\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m370\u001b[0m \u001b[1m\u001b[94m| \u001b[0m            .map(|commit| commit.\u001b[92mcommit.\u001b[0mops().to_vec())\n    \u001b[1m\u001b[94m|\u001b[0m                                  \u001b[92m+++++++\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n    x + 1\n}\n\nplus_one(\"Not a number\");\n//       ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n//     ---   ^^^^^^^^^^^^^ expected `f32`, found `&str`\n//     |\n//     expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/editor/src/widget/test_fixtures.rs","byte_start":12315,"byte_end":12322,"line_start":373,"line_end":373,"column_start":43,"column_end":50,"is_primary":true,"text":[{"text":"            self.doc = self.doc.try_apply(&commit).expect(\"the gesture folds\");","highlight_start":43,"highlight_end":50}],"label":"expected `&Commit`, found `&Sealed`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/editor/src/widget/test_fixtures.rs","byte_start":12305,"byte_end":12314,"line_start":373,"line_end":373,"column_start":33,"column_end":42,"is_primary":false,"text":[{"text":"            self.doc = self.doc.try_apply(&commit).expect(\"the gesture folds\");","highlight_start":33,"highlight_end":42}],"label":"arguments to this method are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"expected reference `&Commit`\n   found reference `&Sealed`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"crates/doc/src/document.rs","byte_start":12107,"byte_end":12116,"line_start":309,"line_end":309,"column_start":12,"column_end":21,"is_primary":true,"text":[{"text":"    pub fn try_apply(&self, commit: &Commit) -> Result<Document, FoldError> {","highlight_start":12,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n   \u001b[1m\u001b[94m--> \u001b[0mcrates/editor/src/widget/test_fixtures.rs:373:43\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m373\u001b[0m \u001b[1m\u001b[94m|\u001b[0m             self.doc = self.doc.try_apply(&commit).expect(\"the gesture folds\");\n    \u001b[1m\u001b[94m|\u001b[0m                                 \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mexpected `&Commit`, found `&Sealed`\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m                                 \u001b[1m\u001b[94m|\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m                                 \u001b[1m\u001b[94marguments to this method are incorrect\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: expected reference `&\u001b[1m\u001b[35mCommit\u001b[0m`\n               found reference `&\u001b[1m\u001b[35mSealed\u001b[0m`\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n   \u001b[1m\u001b[94m--> \u001b[0mcrates/doc/src/document.rs:309:12\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m309\u001b[0m \u001b[1m\u001b[94m|\u001b[0m     pub fn try_apply(&self, commit: &Commit) -> Result<Document, FoldError> {\n    \u001b[1m\u001b[94m|\u001b[0m            \u001b[1m\u001b[92m^^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"no method named `label` found for struct `Sealed` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n    fn chocolate(&self) { // We implement the `chocolate` method here.\n        println!(\"Hmmm! I love chocolate!\");\n    }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"crates/editor/src/widget/test_fixtures.rs","byte_start":19923,"byte_end":19928,"line_start":584,"line_end":584,"column_start":28,"column_end":33,"is_primary":true,"text":[{"text":"        let label = commit.label().to_owned();","highlight_start":28,"highlight_end":33}],"label":"method not found in `Sealed`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/editor/src/gesture.rs","byte_start":9820,"byte_end":9837,"line_start":251,"line_end":251,"column_start":1,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Sealed {","highlight_start":1,"highlight_end":18}],"label":"method `label` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `label`, perhaps you need to implement one of them:\ncandidate #1: `typed_path::common::non_utf8::Encoding`\ncandidate #2: `typed_path::common::utf8::Utf8Encoding`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"crates/editor/src/widget/test_fixtures.rs","byte_start":19923,"byte_end":19923,"line_start":584,"line_end":584,"column_start":28,"column_end":28,"is_primary":true,"text":[{"text":"        let label = commit.label().to_owned();","highlight_start":28,"highlight_end":28}],"label":null,"suggested_replacement":"commit.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `label` found for struct `Sealed` in the current scope\u001b[0m\n   \u001b[1m\u001b[94m--> \u001b[0mcrates/editor/src/widget/test_fixtures.rs:584:28\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m584\u001b[0m \u001b[1m\u001b[94m|\u001b[0m         let label = commit.label().to_owned();\n    \u001b[1m\u001b[94m|\u001b[0m                            \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Sealed`\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m\n   \u001b[1m\u001b[94m::: \u001b[0mcrates/editor/src/gesture.rs:251:1\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m251\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Sealed {\n    \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------------\u001b[0m \u001b[1m\u001b[94mmethod `label` not found for this struct\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is implemented and in scope\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the following traits define an item `label`, perhaps you need to implement one of them:\n            candidate #1: `typed_path::common::non_utf8::Encoding`\n            candidate #2: `typed_path::common::utf8::Utf8Encoding`\n\u001b[1m\u001b[96mhelp\u001b[0m: one of the expressions' fields has a method of the same name\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m584\u001b[0m \u001b[1m\u001b[94m| \u001b[0m        let label = commit.\u001b[92mcommit.\u001b[0mlabel().to_owned();\n    \u001b[1m\u001b[94m|\u001b[0m                            \u001b[92m+++++++\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n    x + 1\n}\n\nplus_one(\"Not a number\");\n//       ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n//     ---   ^^^^^^^^^^^^^ expected `f32`, found `&str`\n//     |\n//     expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/editor/src/widget/test_fixtures.rs","byte_start":19981,"byte_end":19988,"line_start":585,"line_end":585,"column_start":39,"column_end":46,"is_primary":true,"text":[{"text":"        self.doc = self.doc.try_apply(&commit).expect(\"the gesture folds\");","highlight_start":39,"highlight_end":46}],"label":"expected `&Commit`, found `&Sealed`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/editor/src/widget/test_fixtures.rs","byte_start":19971,"byte_end":19980,"line_start":585,"line_end":585,"column_start":29,"column_end":38,"is_primary":false,"text":[{"text":"        self.doc = self.doc.try_apply(&commit).expect(\"the gesture folds\");","highlight_start":29,"highlight_end":38}],"label":"arguments to this method are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"expected reference `&Commit`\n   found reference `&Sealed`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"crates/doc/src/document.rs","byte_start":12107,"byte_end":12116,"line_start":309,"line_end":309,"column_start":12,"column_end":21,"is_primary":true,"text":[{"text":"    pub fn try_apply(&self, commit: &Commit) -> Result<Document, FoldError> {","highlight_start":12,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n   \u001b[1m\u001b[94m--> \u001b[0mcrates/editor/src/widget/test_fixtures.rs:585:39\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m585\u001b[0m \u001b[1m\u001b[94m|\u001b[0m         self.doc = self.doc.try_apply(&commit).expect(\"the gesture folds\");\n    \u001b[1m\u001b[94m|\u001b[0m                             \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mexpected `&Commit`, found `&Sealed`\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m                             \u001b[1m\u001b[94m|\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m                             \u001b[1m\u001b[94marguments to this method are incorrect\u001b[0m\n    \u001b[1m\u001b[94m|\u001b[0m\n    \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: expected reference `&\u001b[1m\u001b[35mCommit\u001b[0m`\n               found reference `&\u001b[1m\u001b[35mSealed\u001b[0m`\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n   \u001b[1m\u001b[94m--> \u001b[0mcrates/doc/src/document.rs:309:12\n    \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m309\u001b[0m \u001b[1m\u001b[94m|\u001b[0m     pub fn try_apply(&self, commit: &Commit) -> Result<Document, FoldError> {\n    \u001b[1m\u001b[94m|\u001b[0m            \u001b[1m\u001b[92m^^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 4 previous errors\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0308, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mSome errors have detailed explanations: E0308, E0599.\u001b[0m\n"}
{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0308`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about an error, try `rustc --explain E0308`.\u001b[0m\n"}
