templar 0.5.0

Lightweight, fast, and powerful templating engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;
use std::any::Any;

#[derive(Debug)]
struct SendSyncContainer(Box<dyn Any + Send + Sync>);

// This will simply fail to compile if the test fails, so we just always pass.
#[test]
fn shared_context_has_send_and_sync() -> Result<()> {
    let container = SendSyncContainer(Box::new(StandardContext::new()));
    println!("{:?}", container);
    Ok(())
}