diff options
author | Aleksey Kladov <[email protected]> | 2018-08-11 10:28:59 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-11 10:28:59 +0100 |
commit | 7afd84febc76a75a3ed1be75c57ff35d7b8b3de6 (patch) | |
tree | 76eb2de7efc569c39cc721b7be298490b9647e0b /crates/libsyntax2/src/yellow | |
parent | d5119133fc03694c6644cac9e307d1d496fc9bf2 (diff) |
visitor
Diffstat (limited to 'crates/libsyntax2/src/yellow')
-rw-r--r-- | crates/libsyntax2/src/yellow/syntax.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/yellow/syntax.rs b/crates/libsyntax2/src/yellow/syntax.rs index 6e33310f1..a22275ed9 100644 --- a/crates/libsyntax2/src/yellow/syntax.rs +++ b/crates/libsyntax2/src/yellow/syntax.rs | |||
@@ -28,6 +28,12 @@ impl<R: TreeRoot> Eq for SyntaxNode<R> {} | |||
28 | 28 | ||
29 | pub type SyntaxNodeRef<'a> = SyntaxNode<&'a SyntaxRoot>; | 29 | pub type SyntaxNodeRef<'a> = SyntaxNode<&'a SyntaxRoot>; |
30 | 30 | ||
31 | #[test] | ||
32 | fn syntax_node_ref_is_copy() { | ||
33 | fn assert_copy<T: Copy>(){} | ||
34 | assert_copy::<SyntaxNodeRef>() | ||
35 | } | ||
36 | |||
31 | #[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd)] | 37 | #[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd)] |
32 | pub struct SyntaxError { | 38 | pub struct SyntaxError { |
33 | pub msg: String, | 39 | pub msg: String, |