Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit f6dd29a

Browse files
committed
Add ui test for filter recursion
1 parent b31d0c9 commit f6dd29a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

testing/tests/ui/filter-recursion.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use askama::Template;
2+
3+
#[derive(Template)]
4+
#[template(source = "{{ s|a|a|a|a|a|a|a|A|a|a|a|a|a|a|a|a|a|a|a|a|a", ext = "txt")]
5+
struct Filtered {
6+
s: &'static str,
7+
}
8+
9+
fn main() {}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: problems parsing template source at row 1, column 46 near:
2+
""
3+
--> tests/ui/filter-recursion.rs:3:10
4+
|
5+
3 | #[derive(Template)]
6+
| ^^^^^^^^
7+
|
8+
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)