Skip to content

Commit 6dca4b4

Browse files
committed
Fix compiletests
1 parent 47e6f51 commit 6dca4b4

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

diesel_compile_tests/tests/compile-fail/table_invalid_syntax_2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
table! {
44
some wrong syntax
55
}
6-
//~^ ERROR environment variable `invalid table! syntax` not defined
6+
// error-pattern: invalid table! syntax
77

88
fn main() {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#[macro_use] extern crate diesel;
2+
3+
table! {
4+
#[foobar]
5+
//~^ ERROR expected ident, found #
6+
posts {
7+
id -> Integer,
8+
}
9+
}
10+
11+
fn main() {}

0 commit comments

Comments
 (0)