File: 03-object-no-auto-send-sync.rs

package info (click to toggle)
rust-glib 0.20.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,308 kB
  • sloc: makefile: 18
file content (6 lines) | stat: -rw-r--r-- 125 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
fn main() {
    fn check<T: Send + Sync>(_obj: &T) {}

    let obj = glib::Object::new::<glib::Object>();
    check(&obj);
}