doc: Add nightly feature hint for closures

resolves #767
This commit is contained in:
Mario Reder
2018-09-11 07:02:16 +02:00
parent 9147e3211e
commit e6fe9cf353
2 changed files with 8 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
//! This module defines the `Closure` type which is used to pass "owned
//! closures" from Rust to JS. Some more details can be found on the `Closure`
//! type itself.
//!
//! The `nightly` feature is required for the `Closure` type to be used.
use std::cell::UnsafeCell;
#[cfg(feature = "nightly")]